aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1484

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1484  Minesweeper game + source uploaded to wiki

le 19/11/2006 @ 08:08
par Dave O\'Brien

Anonyme



Hi all,

I've been dabbling with a simple Minesweeper game in iziBasic, and it's now in presentable shape.

I've uploaded the game and its source files to the Samples section of the iziBasic wiki:

http://wiki.aldweb.com/index.php?wiki=Samples

It should run on Palm 3.x or later, in both B&W and color. If you find any problems with it, let me know.

It was fun programming it in iziBasic, though I did get quite close to the limit of the number stack and had to get rid of some variables to get a successful compile.

It uses some standard images included with iziBasic, and simulates recursion using PUSH and POP. Runs very well on PalmOS 5 devices, somewhat slower (but still OK) on an old Visor Platinum).

Cheers!
  Poster une réponse  Haut

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 19/11/2006 @ 18:16
par aldweb

Anonyme

visiteur
Hello Dave,

As I already wrote you by e-mail, I love your minesweeper implementation. Just wanted to share it with all forum readers

Cheers,


@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 22/11/2006 @ 22:57
par Lou

Anonyme

visiteur
Dave,
Great implementation of Minesweeper!

I've noticed some "white screen" delays on closing your app. I had the same thing with my game (Stop or Go) and it actually led to some users' devices crashing.

I don't recall exactly why, but when I moved away from saving a lot of game data with preferences and moved to using a data file, the problems disappeared and closing the game was sped up considerably.

I noticed in your source code that you are also saving quite a few preferences. Might I suggest using a data file?

Perhaps something like:

open "SwprData" for output as #1
for %cellNum%= 1 to %totalCells%
%cellRaw%=a(%cellNum%)+1
print #1,%cellRaw%
next
close #1

Regards,
Lou
Ecrire à Lou   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 22/11/2006 @ 23:14
par aldweb

Anonyme

visiteur
Hello Lou,

Good advice.

Do you want me to remember you why I gave you this same advice some time ago for Stop Or Go (which is one of the few games I keep playing once or twice almost every single day!) and why storing lots of information in a file is faster than in preferences?

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 22/11/2006 @ 23:19
par aldweb

Anonyme

visiteur
Hey Lou, I just discovered your 2nd application, DiceDeck.
I guess this one is also a must have!

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5
--------
le 23/11/2006 @ 07:20
par Dave O\'Brien

Anonyme

visiteur
Thanks for the tip on saving to a file.

I'm saving 110 numbers (1 for each cell), which probably goes way beyond what the PalmOS folks thought that Preferences should be used for.

I'll try out your code this weekend and let y'all know how it goes.

Thanks again!
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 6
--------
le 23/11/2006 @ 12:54
par aldweb

Anonyme

visiteur
Heelo Dave,

Here are a few suggestions to enhance the game, pick only whatever you like from my proposals!

Suggestion #1
Put a timer, save high scores for the 3 Easy, Medium and Hard levels.
Make sure to stop the timer if the player exits from the game and to start it again when the player comes back.

Suggestion #2 (maybe the most important one)
Offer another more user friendly way to control the flagging of a cell.
This could be:
- either a stroke of the pen from the target cell to another cell
- or a long pen tap on the target cell would turn the flag on, a quick tap to turn it back off, another quick tap on a non flagged cell would undiscover the cell
=> having chosen to work with images and no more buttons (as in your original proof of concept) opens this kind of great enhancement

Suggestion #3
Put a dramatic bomb sound (with PLAYWAVE) when KABOOM!
Same thing with a great relief song when not KABOOM!
Offer option to turn sound off, whatever the Game system setting is.

Suggestion #4
Your application is not only freeware, it also is open source. Worth mentionning it in the About box, this is a very nice offer from you.

Suggestion #5
What about a nice bomb image?
Even an animated one? (a little bit like I did in the Matches sample application with burning matches)


These are just proposals.
Your game is already a must have as is!

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 7
--------
le 24/11/2006 @ 20:28
par Dave O\'Brien

Anonyme

visiteur
I've uploaded Sweeper 1.1 to the wiki Samples section.

I now save the data in a normal data file instead of using preferences, and it is indeed much faster, with no blank white screen. Thanks for the tip!

aldweb, thank you also for the suggestions. I need to decide which features are most important, vs. how much effort they will take. This is a reversal, isn't it? Perhaps I should barter you Sweeper updates for iziBasic updates. ;^P

  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 8
--------
le 24/11/2006 @ 22:41
par aldweb

Anonyme

visiteur
Perhaps I should barter you Sweeper updates for iziBasic updates. ;^P

Damned, I am trapped!

This is a good win-win deal, Dave!

Cheers,
aldweb


@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 9
--------
le 24/11/2006 @ 23:09
par Lou

Anonyme

visiteur
Dave,
Happy to pass on the good advice Aldweb gave me a while ago. Again, great implementation.

Aldweb,
For me, no need to recall why it works. For me, it's enough to know that it works. Guess I'm getting old.

Lou
Ecrire à Lou   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^