Sweeps - Puzzle Game

Show us what you're making.

Sweeps - Puzzle Game

Postby James » January 1st, 2011, 4:10 am

SWEEPS - NEW NDS HOMEBREW by me :grin:

I have created a puzzle game inspired by Minesweeper. There are 10 mines hidden in a grid of 64 squares. Every time you try the puzzle, the mines are in different (random) places.

Sweeps.jpg
Screenshot from NO$GBA


The objective is not to uncover any mines by touching them with the stylus. When there are no more squares to touch that would not reveal a mine, you win, and your time is displayed.

If a square is not a mine, it displays a number, which tells you how many mines surround it (there are 8 squares surrounding it). Also, you will see little indicators like "TR" and "B" on the screen, which you can use to play the game very fast.

The objective is to become "safe", and do so as fast as possible. Remember, your soldiers are relying on you!

The indicators tell you which squares contain mines in relation to the one you touched - the squares, therefore, to avoid. T means top, B bottom, L left, R right, M middle. Thus:

TR = Top Right
ML = Middle Left
B = Bottom
T = Top
...

I will make this game open-source once I release the next DSGM; it relies on a slight fix.

I would like to know your times. Currently I do it in 40 seconds but I have had a bit of practice. I made this game at 10pm on New Year's eve and had it finished by the new year. Speed!
Attachments
Sweeps.nds
Try it out
(446.06 KiB) Downloaded 620 times
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby SM152 » January 1st, 2011, 4:22 am

wow, This game is really fun! I like the feel to it, just like minesweeper. I had to try it about 5 times till I got the whole board. It took me a minute and 40 seconds (timer).

P.S its only 7:22 were i'm at!
Visit my site! http://www.mudbudproductions.weebly.com We have Games for PC and DS, and also tutorials!

R.I.P My Goldies :'(
SM152
 
Posts: 30
Joined: December 31st, 2010, 2:53 am
Location: cloud 9

Re: Sweeps - Puzzle Game

Postby James » January 1st, 2011, 4:25 am

It's quite addictive; I've played it about 50 times now, of these times, completed it 5 I think.

I will work on it tomorrow; it's late here - 3:24 AM.

I just completed it now in 42 seconds. Happy :lol:
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby James » January 1st, 2011, 1:22 pm

New time is 32 seconds.

EDIT: Done it in 29 seconds in DeSmuME in full screen.
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby SM152 » January 2nd, 2011, 2:51 am

new record, 58 seconds. Score:19
Visit my site! http://www.mudbudproductions.weebly.com We have Games for PC and DS, and also tutorials!

R.I.P My Goldies :'(
SM152
 
Posts: 30
Joined: December 31st, 2010, 2:53 am
Location: cloud 9

Re: Sweeps - Puzzle Game

Postby James » January 2nd, 2011, 3:25 am

What's "Score: 19" about?

I haven't beaten 29 seconds yet BTW :shock:
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby Thungbard » January 2nd, 2011, 3:39 am

My best is somewhere in the 80 second range, mostly because I keep playing it as MineSweeper and ignoring the letters that state where the Bombs are, which causes extra required thinking on my part.
Thungbard
 
Posts: 301
Joined: December 30th, 2010, 8:09 pm
Location: Canada

Re: Sweeps - Puzzle Game

Postby CZ Games » January 2nd, 2011, 8:21 am

when i was editing my profile on this forum and seen sweep time i LOl'd. I suck at this game by the way. I need to play it on my DS and actually concentrate i was trying to do it fast on the emulator.. but I failed.
Live..
Learn...
Press Start....
http://www.czgames.net/

P.S. I Know my avatar is messed up, i can't do much about it right now so just bare with me -_-
CZ Games
 
Posts: 61
Joined: January 2nd, 2011, 2:14 am
Location: California, USA

Re: Sweeps - Puzzle Game

Postby bksonic » January 2nd, 2011, 9:29 pm

87.

I have to say, this is impressive (the game, not my score).
Have you played Sliker DS?

Why not try Everything's A Lie? (For Windows PC)
or for DS
User avatar
bksonic
 
Posts: 122
Joined: December 30th, 2010, 9:54 pm
Location: Somewhere I Belong

Re: Sweeps - Puzzle Game

Postby JanMulder » January 2nd, 2011, 9:42 pm

You think the coding is impressive? I personally think that it's only
if you press tile
little loop to look around how many mines are around you
set sprite frame to amount of mines around you
if the tile is a mine
boom

I like the game and the graphics, but it's not that the coding is really impressive...
here and yet not here
JanMulder
 
Posts: 726
Joined: December 30th, 2010, 3:08 pm

Re: Sweeps - Puzzle Game

Postby James » January 2nd, 2011, 10:05 pm

I made this game at 10pm on New Year's eve and had it finished by the new year. Speed!

Yes; quoting myself. I was proper impressed this time; I wrote the bulk of the code and it worked first time on running it. That is why it didn't take much time.

I did use a whiteboard to draw part of the minesweeper grid to get my head round instancing. There's an array of mines (10 slots), but no array for every object. For example, to look at the square to the top left, it just takes 9 from [Me] because the squares are arranged from 0-63 in horizontal lines.

Of course you will see how it works when I release the source.

C is here: http://dsgamemaker.com/SweepSource.zip

EDIT: Fixed the link.
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby pichubolt090 » January 3rd, 2011, 7:36 pm

Hehe, this is addicting!
Programmer in Visual Basic and experienced user of DS Game Maker 4 and 5 Pro.

Hot chocolate with cream is the perfect replacement for coffee.

Visit my website
pichubolt090
 
Posts: 170
Joined: January 3rd, 2011, 7:21 pm
Location: Netherlands

Re: Sweeps - Puzzle Game

Postby James » January 3rd, 2011, 7:54 pm

Hehe, this is addicting!

Good. I have played it a lot too actually...

I'd like your suggestions for improving it, and to know your time.

I cannot beat 29 seconds by emulator or on DS.
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby pichubolt090 » January 3rd, 2011, 7:56 pm

James wrote:I'd like your suggestions for improving it, and to know your time.

Background. Black-to-white backgrounds never work out nicely on the DS. I suggest either using a darker shade of white or a brighter black.
My time? None. I suck at Minesweeper. lol
Programmer in Visual Basic and experienced user of DS Game Maker 4 and 5 Pro.

Hot chocolate with cream is the perfect replacement for coffee.

Visit my website
pichubolt090
 
Posts: 170
Joined: January 3rd, 2011, 7:21 pm
Location: Netherlands

Re: Sweeps - Puzzle Game

Postby James » January 3rd, 2011, 8:03 pm

Background. Black-to-white backgrounds never work out nicely on the DS

The effect was actually deliberate, but I don't like it regardless.
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby pichubolt090 » January 3rd, 2011, 8:07 pm

Yes, well, the top and bottom backgrounds 'don't fit with each other', if you know what I mean. The top background is a detailed image, contrasting heavily with the bottom, which is a mere gradient. :)
Programmer in Visual Basic and experienced user of DS Game Maker 4 and 5 Pro.

Hot chocolate with cream is the perfect replacement for coffee.

Visit my website
pichubolt090
 
Posts: 170
Joined: January 3rd, 2011, 7:21 pm
Location: Netherlands

Re: Sweeps - Puzzle Game

Postby CZ Games » January 3rd, 2011, 11:14 pm

I got safe at 182 but as soon as i got safe and heard the explosion I got so scared i think i pooped a brick! :shock:
Live..
Learn...
Press Start....
http://www.czgames.net/

P.S. I Know my avatar is messed up, i can't do much about it right now so just bare with me -_-
CZ Games
 
Posts: 61
Joined: January 2nd, 2011, 2:14 am
Location: California, USA

Re: Sweeps - Puzzle Game

Postby Ryan » January 6th, 2011, 2:35 am

Dude, I built this in ti basic on my calculator... I'm working on flood-fill when you click a block with no neighboring bombs. Like it does on all the other minesweeper games. Maybe you should consider adding this feature to your game.

EDIT:
I put together a function (that I think works... I don't know for sure. I never tested it. And I think C directly accesses arrays when sent as parameters but I don't remember.
Code: Select all

int floodFill
(int xValues[8], int yValues[8], int placesToCheck_x[8], int placesToCheck_y[8]){
    
bool runAgain false;

    for(
int x 08x++){
        for(
int y 08y++){
            if (
placeIsMarked(placesToCheck_x[x], placesToCheck_y[y]))//Place Is Marked For Checking For Flood Fill
            
for(int temp_x 0temp_x 3temp_x++)
            for(
int temp_y 0temp_y 3temp_y++){
                if (
placeReturnsNoNumbers(xValues[x], yValues[y])){
                    
markPlace();//Mark Place For Checking
                    
runAgain true;
                }
                if (
placeReturnsNoBomb(xValues[x], yValues[y])){
                    
markPlaceAsOpened(xValues[x],yValues[y]);
                }
            }
        }
    }
    if (
runAgain)
        
floodFill(xValuesyValuesplacesToCheck_xplacesToCheck_y);
}
 
Last edited by Ryan on July 19th, 2011, 5:26 pm, edited 1 time in total.
Hey you! Go here to make your own HTML5 games!
Ryan
 
Posts: 156
Joined: January 6th, 2011, 2:29 am

Re: Sweeps - Puzzle Game

Postby James » January 6th, 2011, 8:20 am

Dude, I built this in ti basic on my calculator...

I wrote this in Dynamic Basic in DSGM...
James
Site Admin
 
Posts: 810
Joined: December 30th, 2010, 3:23 am
Location: Lancaster University, England

Re: Sweeps - Puzzle Game

Postby jace » January 6th, 2011, 11:07 am

What is the Game Player Number for this please?
jace
 
Posts: 91
Joined: December 31st, 2010, 12:50 pm

Next

Return to Work In Progress

Who is online

Users browsing this forum: No registered users and 1 guest