MineSweeperD12 by Alex Nevskiy #12
Replies: 16 comments 1 reply
I would like to wish good luck to all participants! |
Behind the scenesGradientA set of 30 images of varying brightness is used to display tiles. When the playing field is initialized, a Gradient Field is generated - it matches the size of the playing field and in each cell contains tile indices that will be used to draw the main field.
Safe first clickInitially, a draft field is created, the same size as the main playing field. Its center is found and, depending on the specified dimensions, a zone is created that is prohibited for generating mines. (for example, 1/5 of the field size, but not less than 3x3) Let's say (for ease of explanation), the player clicked on a tile that is highlighted in color. For this place, the horizontal and vertical offset value is calculated and the entire draft field is rewritten into the playing field with this offset, placing a safe zone under the player's click. |

























Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Game is ready
https://github.com/AlexandrNevskiy/MineSweeperD12
Pure VCL;
All-In-One, self-sufficient .exe;
As close to the classic (new) version as possible;
Beginner, Intermediate, Advanced and Custom difficult;
Safe first click (as well generate safe area larger than 3x3)
Animation (of opening area);
Sounds (played from memory, no external files);
Save game at exit and restore at start (for each difficulty);
Classic control, adapted to fast-play style.
High Scores and personal statistics.
Save and restore game window position.
Behind the scenes
All reactions