aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1585

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1585  I release Reflexez

17/10/2007 @ 00:44
by Nate Weil

Anonymous



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!
  Post an answer  Top

[]   

StartPrevious [ 1 2 ] NextEnd

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 11
--------
19/10/2007 @ 14:50
by Nate Weil

Anonymous

visitor
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!
  Post an answer  Top
StartPrevious [ 1 2 ] NextEnd
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^