Here´s my Minesweeper with Sourcecode
Use space to open a field
Use Enter to set a flag
Use Arrow Keys to navigate
Report bugs in this Thread
Hope u enjoy
Dlotan
edit: coz i dont had that much time to get known of all the colors:
there are defines in the game.h where u can change the colors
source code is in my second post
Minesweeper -> Dlotan ;)
Minesweeper -> Dlotan ;)
Last edited by Dlotan on April 18th, 2012, 6:23 pm, edited 1 time in total.
Re: Minesweeper -> Dlotan ;)
This is very well made Dlotan, thank you for sharing! Nice touch using domino dots for the numbers. Much easier than hand coding sprites for each number digit.
I hope you don't mind me featuring this in the next video.
I think there might be a bug here though...
Take a look at the bottom left corner in this screenshot.
I hope you don't mind me featuring this in the next video.
I think there might be a bug here though...
Take a look at the bottom left corner in this screenshot.
Chili
Re: Minesweeper -> Dlotan ;)
Thanks for reporting chili
seems like i messed a + and a - up
i did
instead of
edit: I updated it so everything works fine now. U can change many things in the defines now such as coloms rows... hight of the whole field... number of mines... colors of everything. Also i uploadet now like ur rules say
Would be a honor to get featured ofc
seems like i messed a + and a - up
i did
Code: Select all
//btm-right
if(y + 1 <= PROSPALTE + 1)
{
if(field[x + 1][y + 1].mine == TRUE)
{
field[x][y].minesnextto++;
}
}
Code: Select all
//btm-right
if(y + 1 <= PROSPALTE - 1)
{
if(field[x + 1][y + 1].mine == TRUE)
{
field[x][y].minesnextto++;
}
}
Would be a honor to get featured ofc
- Attachments
-
- Chili DirectX Framework - Kopie - Kopie.rar
- updated version
- (36.64 KiB) Downloaded 349 times
Re: Minesweeper -> Dlotan ;)
Hey Dlotan, I just took a look at your source code. Very nicely laid out and easy to understand! Both the formatting and the structure of the code itself is well-made. Very nice work indeed.
Chili
Re: Minesweeper -> Dlotan ;)
Thanks a lot Buddy
- Attachments
-
- Minesweeper.rar
- the exe
- (10.46 KiB) Downloaded 357 times