|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1585 |
I release Reflexez |
le 17/10/2007 @ 00:44 par Nate Weil
|
I made my first program, a simple reflexes game. The program picks a random number as your target, then a second number starts going up. Each round in the loop, it picks a random number between 0 and 50 and increments "your" number by that amount. The goal is to stop "your" number as close to the target number as possible, by clicking stop. The game also includes an exit button, and a play again button that only works after a game over. I will put it on Palmgear.com, hopefully freewarepalm.com, and on my website which you can find a link to by going to freewarepalm.com, searching for BASIC Battle, and clicking on the link there. Thanks! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 11 -------- le 19/10/2007 @ 14:50 par Nate Weil
visiteur |
Before I knew as much as I knew now, I tried a waitevent in my loop. So I had that, and the number went up by one. If this had worked, the number would have been flying up. But obviously it doesn't so I used doevents when I found out what it is. But this does slow down the program a ton, and the game was too easy because the number was so slow. So what I did instead, is randomize a variable every time around, between 0 and 50. Then that's added to the number. So you can't count how long it takes to get to 2000. I don't have my palm on hand right now and I don't remember the loop I used but it's most likely just a while wend. Thanks! |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|