Omnimaga
Calculator Community => Casio Calculators => Topic started 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:
-
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. :)
-
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.
-
Yeah right now it seems kinda fine. And I just tried on calc and they were chosen well. :)
-
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.
-
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
-
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
-
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
-
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!
-
Thanks guys :)
I'll keep you updated on the progress.
-
*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:
-
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
-
Thanks for approving it! I thought I had put it in the Casio Games section, was that not the right place?
-
minesweeper?
fun :D
I just got my prizm yesterday, and this is the first thing I'm getting on it.
good job, merthsoft :thumbsup:
-
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.
-
Here are some actual screen shots:
Playing:
(http://merthsoft.com/minesweeper1.bmp)
Lost:
(http://merthsoft.com/minesweeper2.bmp)
-
Did you use the Screen Receiver to generate those?
-
Yes I did.
-
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
-
When using the GetKey() function, it allows that interrupt through, and that's the function I use for keys.
-
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.
-
Weird, so I assume in ASM/C it's possible, but not in BASIC?
-
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.
-
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.
-
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:
While (TRUE)
If GetKey
...
End
Would it capture that?
-
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:
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.
-
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.
-
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?
-
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.
-
Hmm strange. I think we definitively need a good third-party emulator for screenshots, because currently it's annoying to capture anything X.x
-
This looks really nice, Merth. Great job! :)
-
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
-
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:
-
THis looks pretty good, as said in the other thread. Thanks for posting that by the way. :)
-
good, great game ;D