Skip to content

kubakubakuba/QtMines

Repository files navigation

QtMines

The attempt of this project is to try to recreate a WindowsXP Minesweeper game in C++ Qt5 (Qt6).

Controls

  • Left click to reveal the mine, right click to place or remove a flag. If all flags are placed on the spaces with mines and all other spaces are revealed, the game is won. If a mine in revealed instead, the game is lost.
  • The game can be restarted at any time by pressing the smiley face icon in the middle of the screen.
  • The left 7-segment indicator shows, how much flags has the player left to place, the right one shows the time elapsed from the start of the last round.
  • The difficulty can by changed by selecting the option in the top menu (player can also set their own difficulty).

Online demo in WebAssembly

The project has been compiled into an WebAssembly, which is located here.

  • Note (1): the resizing does not work for some reason on the web, you may need to change the difficulty to fix it.
  • Note (2): the custom difficulty currently does not work on the web (for some reason :/) (fixed)

Standalone version compiled for Windows is also available in releases the tab.

User interface

image image image

Compiling

Compile in the usual way by running qmake and make. To compile into web assembly, emscripten (em++ compiler) is needed, as well as the Qt5 Creator WebAssembly addon (quite tedious installation). The compiled WebAssembly version can be found in the releases tab.

Sources

Assets were obtained from here.

by Jakub Pelc for B2B99PPC semestral work