Omnimaga

Calculator Community => Casio Calculators => Topic started by: merthsoft on April 14, 2011, 10:40:13 pm

Title: Prizm Minesweeper
Post by: merthsoft on April 14, 2011, 10:40:13 pm
Tonight I made minesweeper for the Casio Prizm. You can download it at:
http://merthsoft.com/Minesweeper.zip (http://merthsoft.com/Minesweeper.zip) (code is in the zip)
And here's a video:
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on April 14, 2011, 10:43:06 pm
No. I wanted a quadratic solver.

Jk this looks nice. At first I was worried it was monochrome but then I was happy to see colors. :D Casio was nice to add these special chars btw, I wish they worked with Locate in BASIC.

I'm gonna try it on my Prizm soon. :)
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 14, 2011, 10:43:53 pm
Yeah, I wasn't really sure what to do with color. I think it could use some more, but I'm pretty happy with it for now. I think it might be better if I made the flags another color.
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on April 14, 2011, 10:50:03 pm
Yeah right now it seems kinda fine. And I just tried on calc and they were chosen well. :)
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 14, 2011, 10:51:36 pm
I just switched the flags to be green, and it does make it a lot more obvious. I'll be updating the download in just a sec.
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on April 14, 2011, 10:53:49 pm
Ah ok. :D

Do you plan to add an icon, though? It's a bit hard to detect if I selected the add-in or not in the menu. ;D
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 14, 2011, 11:16:20 pm
I've made a small update, so that when you win, it actually does something different. I've also made it so there are only 20 mines, because 25 was too hard for me :)
http://merthsoft.com/Minesweeper.zip (http://merthsoft.com/Minesweeper.zip)

Basically now, the last thing is (like you mentioned) an icon. Oh, and I'd like to be able to have user-set mines and dimensions
Title: Re: Prizm Minesweeper
Post by: m1ac4 on April 15, 2011, 07:42:41 am
Non-Basic game for the Prizm!  Who knows where this kind of thing can go.  Good job :thumbsup:
Now I am once again addicted to minesweeper.  Except now I won't ever be able to get away from it, ever.  ;D
Title: Re: Prizm Minesweeper
Post by: Munchor on April 15, 2011, 07:44:00 am
Tonight I made minesweeper for the Casio Prizm. You can download it at:
http://merthsoft.com/Minesweeper.zip (http://merthsoft.com/Minesweeper.zip) (code is in the zip)
And here's a video:

Woah! That's looking very good! Congratulations merth!
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 15, 2011, 10:19:16 am
Thanks guys :)
I'll keep you updated on the progress.
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 16, 2011, 01:53:56 pm
*update bump*
Version 1.0 has been released!
(EDIT: Changed to omni link kevin provided below)
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=653 (http://www.omnimaga.org/index.php?action=downloads;sa=view;down=653)
This version has a pretty icon, and a settings menu! Here's a video:
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on April 16, 2011, 02:40:19 pm
Cool! I also like the icon :).

I'll approve your file now, although I'll need to move it since it was uploaded in the wrong category. :P

EDIT: There we go! http://www.omnimaga.org/index.php?action=downloads;sa=view;down=653

For odd reasons, when editing a file, it automatically gets approved and doesn't create an automated post. O.O
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 16, 2011, 02:49:18 pm
Thanks for approving it! I thought I had put it in the Casio Games section, was that not the right place?
Title: Re: Prizm Minesweeper
Post by: turiqwalrus on April 16, 2011, 05:35:44 pm
minesweeper?
fun :D
I just got my prizm yesterday, and this is the first thing I'm getting on it.
good job, merthsoft :thumbsup:
Title: Re: Prizm Minesweeper
Post by: willrandship on April 16, 2011, 05:39:29 pm
Cool! I wish I had a prizm, but I also like my nspire. I want both :P minesweeper is fun, and has lots of replayability.
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 17, 2011, 06:50:39 pm
Here are some actual screen shots:
Playing:
(http://merthsoft.com/minesweeper1.bmp)
Lost:
(http://merthsoft.com/minesweeper2.bmp)
Title: Re: Prizm Minesweeper
Post by: AngelFish on April 17, 2011, 06:51:33 pm
Did you use the Screen Receiver to generate those?
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 17, 2011, 06:52:56 pm
Yes I did.
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on April 17, 2011, 08:29:46 pm
How? O.O

The last time I tried taking screenshots from the screen receiver, it only let me capture while the calc was not busy or was in pause mode. When a while loop ran, for example, it wouldn't capture. :(

Also the emulator won't let us send files. X.x
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 17, 2011, 08:30:39 pm
When using the GetKey() function, it allows that interrupt through, and that's the function I use for keys.
Title: Re: Prizm Minesweeper
Post by: AngelFish on April 17, 2011, 08:34:20 pm
Merth, it's not the Getkey() function. The USB connection triggers interrupts that I believe occur whenever the cable is plugged it as long as the interrupt table is intact.
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on April 17, 2011, 08:36:49 pm
Weird, so I assume in ASM/C it's possible, but not in BASIC?
Title: Re: Prizm Minesweeper
Post by: merthsoft on April 17, 2011, 08:38:41 pm
Merth, it's not the Getkey() function. The USB connection triggers interrupts that I believe occur whenever the cable is plugged it as long as the interrupt table is intact.
It only works in GetKey(), so there's something in there. The non-blocking calls don't handle MENU or Screen Receiver. Also, I accidentally down voted your post when I was trying to hit quote. So then I upvoted it.
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on April 17, 2011, 08:40:12 pm
Hmm.. I wonder... does this mean that in a BASIC program, if I had a getkey command running in every loop, it would capture? I will have to try this when I have time.
Title: Re: Prizm Minesweeper
Post by: Munchor on April 18, 2011, 06:13:18 am
Hmm.. I wonder... does this mean that in a BASIC program, if I had a getkey command running in every loop, it would capture? I will have to try this when I have time.

Do you mean like:

Code: [Select]
While (TRUE)
If GetKey
...
End

Would it capture that?
Title: Re: Prizm Minesweeper
Post by: JosJuice on April 18, 2011, 06:31:43 am
Hmm.. I wonder... does this mean that in a BASIC program, if I had a getkey command running in every loop, it would capture? I will have to try this when I have time.

Do you mean like:

Code: [Select]
While (TRUE)
If GetKey
...
End

Would it capture that?
I don't think that would be captureable... The Casio-BASIC GetKey is non-blocking, if I recall correctly.
Title: Re: Prizm Minesweeper
Post by: z80man on April 18, 2011, 02:11:23 pm
The screen receiver seems to work in BASIC progs only when there is little action. For example when the calc is is a repeat getkey loop then it will send an image, but if there are many drawing operations going on then the screen receiver will wait till the drawing calms down. I'm not sure if it will work when there are math only operations going on.
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on May 12, 2011, 05:41:21 pm
Hmm I see now. I assume if there are many draw functions you need to spam like 10 getkey commands in your loop code, right?
Title: Re: Prizm Minesweeper
Post by: z80man on May 13, 2011, 02:18:08 am
Actually I recently found out a little more about how the screen receiver works. It appears to use the dmac to do quick transfers of the vram to the usb. The problem is that the vram to DD (screen draw) also uses the dmac so screen reciever must wait till it is free. What I've seen is if you do a for loop to 100,000 with no drawing with screen receiver running there is little slowdown to your code, but if it is graphic intensive there still is little slowdown, but screen receiver won't do an transfers. Also if screen receiver is already using the dmac then directdraw must wait till it is done. The full dmac transfer takes about 1/22 of a second, but you can have your own code running during this time.
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on May 23, 2011, 12:08:55 am
Hmm strange. I think we definitively need a good third-party emulator for screenshots, because currently it's annoying to capture anything X.x
Title: Re: Prizm Minesweeper
Post by: ztrumpet on May 23, 2011, 09:07:24 am
This looks really nice, Merth.  Great job! :)
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on October 29, 2011, 01:59:48 pm
Ok I tried that now (putting a For() loop in my code with no graphical changes for a while) and it still waits until program execution stopped
Title: Re: Prizm Minesweeper
Post by: merthsoft on February 11, 2012, 12:43:34 am
I have made a graphical version of this! Yay! Download here:
http://www.omnimaga.org/index.php?action=downloads;sa=downfile&id=779 (http://www.omnimaga.org/index.php?action=downloads;sa=downfile&id=779)
Screenshots:
(http://merthsoft.calcg.org/Win.png)
(http://merthsoft.calcg.org/Lose.gif)
Youtube video:
Title: Re: Prizm Minesweeper
Post by: DJ Omnimaga on February 11, 2012, 03:50:21 am
THis looks pretty good, as said in the other thread. Thanks for posting that by the way. :)
Title: Re: Prizm Minesweeper
Post by: helder7 on February 11, 2012, 01:05:44 pm
good, great game  ;D