Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: zeldaking on September 26, 2013, 05:27:38 pm

Title: CSE minesweeper
Post by: zeldaking on September 26, 2013, 05:27:38 pm

I have been working on a minesweeper clone for the Ti-84+CSE, and have it almost finished.
Things I have finished:
-10x10 board, set for variable width; but height will stay 10
-Random mines; variable amounts
-Algorithm that sets each square a specified number according to how many mines are touching it
-Draws board
-Movable cursor
-Flags can be placed
-Pressing [2nd] "turns on" square and displays value
-Flags can be unplaced (pressing on a set flag will return it to flag inventory
-Flagged mine counter
-User loses when pressing on a mine

Things to do:
-Make selectable levels; easy, medium, hard
-Make the smiley face
-Timer
-High score table


Anybody have any suggestions? Want to see a specific thing? Please tell me!
I will post a screenshot later tonight.
Title: Re: CSE minesweeper
Post by: DJ Omnimaga on September 26, 2013, 11:56:34 pm
Interesting. Is this for the Omni contest or are CSE programs disallowed?

I can't wait for a screenshot :)
Title: Re: CSE minesweeper
Post by: JamesV on September 27, 2013, 12:26:50 am
Sounds great zeldaking! Minesweeper is a perfect choice for an 84+CSE game.
Title: Re: CSE minesweeper
Post by: zeldaking on September 27, 2013, 01:09:08 am
Interesting. Is this for the Omni contest...
No it is not. Just a small project. It was really fun to make. Having been my first minesweeper game I have made on my own, I don't consider making minesweeper using an xlib tutorial my own.
Title: Re: CSE minesweeper
Post by: Sorunome on September 27, 2013, 04:51:10 am
Nice, minesweeper is always a lot of fun :)
Title: Re: CSE minesweeper
Post by: zeldaking on September 27, 2013, 11:58:04 am
Alright here are two screenshots:
10 mines:
(http://img.ourl.ca//SCREEN01.PNG)
50 mines: (extremely difficult)
(http://img.ourl.ca//SCREEN02.PNG)
Title: Re: CSE minesweeper
Post by: Sorunome on September 27, 2013, 12:38:01 pm
Looking awesome!
Will you abe able to set a smaller field later on?
Title: Re: CSE minesweeper
Post by: zeldaking on September 27, 2013, 04:07:07 pm
That's a good idea, I hadn't thought of that, although all my code is set for variable width and height. So yeah, I'll definetly put smaller playing grids.
Title: Re: CSE minesweeper
Post by: zeldaking on September 27, 2013, 09:47:55 pm
I know it is within 24 hours, but this is a picture update, I'd rather post a new post than edit the top original post as to show progression.
User select-able size and levels; 5 level types: Easy 10% squares are mines, Medium 20%, Hard 30%, Pro 50%, and Custom which the user can pick his own # of mines albeit high scores in custom won't be on the high score table.
(http://img.ourl.ca//M1.PNG)
---------
New features: Smiley face, timer and variable size board. In this case 5x5 (which is the smallest available size).
(http://img.ourl.ca//M2.PNG)
---------
8x8 board showing off the timer again, and Med difficulty
(http://img.ourl.ca//M3.PNG)
---------
10x10 board on Pro difficulty. Pretty challenging.
(http://img.ourl.ca//M4.PNG)
---------

Things still to do:
-high score table; top score per board per difficulty. Maybe make top 3 scores?
-option to pause
-option to restart
-option to replay once game is finished by either winning or losing
-option to view high scores

Does anyone want to test it out for me? I am a bit biased on how it plays. Any testers? I can pm you the files.

Annnnddd any suggestions?
Title: Re: CSE minesweeper
Post by: AssemblyBandit on September 28, 2013, 01:08:03 am
Looks nice! I use to play that game a lot! Does that game still come with Windows?
Title: Re: CSE minesweeper
Post by: zeldaking on September 28, 2013, 01:36:03 am
As for testers, let's just say my mom knows how to play minesweeper now. Haha.
As for minesweeper coming with windows, I know it did with early OS's but I'm not sure for windows 8. I have w8 but haven't looked for it. I might do that tomorrow.
Title: Re: CSE minesweeper
Post by: Sorunome on September 28, 2013, 02:36:00 am
Looking awesome! :D
Title: Re: CSE minesweeper
Post by: Lionel Debroux on September 28, 2013, 02:47:32 am
Looks pretty good indeed :)
Aren't the smiley's side bars a bit off ?

I've spread the word over at TI-Planet, so as to hopefully attract more beta-testers.
Title: Re: CSE minesweeper
Post by: TheMachine02 on September 28, 2013, 09:28:40 am
As for testers, let's just say my mom knows how to play minesweeper now. Haha.
As for minesweeper coming with windows, I know it did with early OS's but I'm not sure for windows 8. I have w8 but haven't looked for it. I might do that tomorrow.

well, I have win8 too, and I never found that game  D:
Title: Re: CSE minesweeper
Post by: zeldaking on September 28, 2013, 09:38:31 am
Yeah regarding the smiley, the bars are off. I'm not sure how to draw thick lines. I will have to fix that.
Title: Re: CSE minesweeper
Post by: DJ Omnimaga on October 01, 2013, 11:16:03 pm
Looks very nice! Actually the interface reminds me of the xLIB grayscale Minesweeper released a few years ago, since the smiley is on the side. Also lines are thick by default, but you can't draw thicker ones (the max is 2 pixels)
Title: Re: CSE minesweeper
Post by: zeldaking on March 13, 2014, 02:30:51 am
BUMP! Woo, so I have a project to work on again, finally.
I'm going back and optimizing this project and "porting" (would you say that?) to xLibC so the graphics will be updated and hopefully it will run better. The last version was all ASCII (well I guess there were lines...), but anyhow I'm liking how my graphics are looking now! Here are some mockups that I threw together.
--
My sprites, if you have any complaints or suggestions on these, please share:
(http://i.imgur.com/ZSE1y1W.jpg?3)
--
A blank 5x5 board before playing:
(http://i.imgur.com/5DUjBUY.jpg?1)
--
The 5x5 board semi-complete:
(http://i.imgur.com/wYRUaTb.jpg?1)
--
The 5x5 board finished:
(http://i.imgur.com/tgKpg4S.jpg?1)
--
Hopefully these are high-res enough. I can make them larger if need be (they were originally ~1900x2500)
Comments?
Title: Re: CSE minesweeper
Post by: TIfanx1999 on March 13, 2014, 06:31:25 pm
No complaints. Looks good so far! :D
Title: Re: CSE minesweeper
Post by: zeldaking on March 13, 2014, 08:15:12 pm
Thank's Art!
..............


Progress for the win!
I got the sprites onto actual hardware and wrote a quick board display routine. It takes variable size boards, from 0x0 (yes 0x0) to infinite.. (but that wont display on calc). Sizes up to 17X12 fit. Here are some pictures to look at:
--
1x1; this one is for ordelore as he made a sassy remark about these dimensions ;)
(http://i.imgur.com/f7UNczh.jpg?1)
--
5x5
(http://i.imgur.com/b4Ix5mW.jpg?1)
--
10x10
(http://i.imgur.com/J5f5cJ0.jpg?1)
--
And a full; 17x12.. This size won't be in the final release.. No room for a timer :P
(http://i.imgur.com/SfHLD86.jpg?1)


Any comments or suggestions?
Title: Re: CSE minesweeper
Post by: JWinslow23 on March 13, 2014, 08:37:45 pm
I only suggest that you make it into more! ;)
Title: Re: CSE minesweeper
Post by: zeldaking on March 13, 2014, 09:28:44 pm
Haha, yeah I'm getting to that point. I just like posting updates to motivate myself! :)
Title: Re: CSE minesweeper
Post by: zeldaking on March 14, 2014, 12:08:10 pm
Alright, another graphical update.
I finished up a nice menu screen:
(http://i.imgur.com/YzbFUXb.jpg?1)
The background is randomly generated with tiles from the game.
--
In game process, showing successful flagging, which I've made if you tried flagging a spot already with a flag then it un-flags.
sorry, kinda blurry
(http://i.imgur.com/bsbDOYT.jpg?1)
--
Finished game when losing, shows all mine positions.
(http://i.imgur.com/zMKt8Ka.jpg?1)
--
I have the game board able to support up to 13x13, and small as 5x5.
Planned features:
-Timer
-Smiley face(s)
-Level selection
-Highscores
-Options (might add a "retro" sprite option)
-Centered board, doesn't matter the size, will move to center it.

Any other suggestions I should consider? Comments?
Title: Re: CSE minesweeper
Post by: DJ Omnimaga on April 04, 2014, 02:40:54 am
Looks really great! It's pretty true to the original Windows one. I can't wait to try it :)

How fast is it in general, for example, when a lot of the mine field has to be updated and to check for mines around you? Also any idea why you didn't use jsTIfied or WabbitEmu? Does the game fail to run in those?