I made this up because I want newcomers to learn, by taking on these challenges I give them.
So you wanna take the challenges on?
Try this first, simple one. I added REM statements to guide you through. The purpose here is first to read it, play it, and realize what it does.
This code simply show the reaction of pressing the spacekey.
REM Turn the Sync on
sync on
REM Set the Sync Rate
syncrate=2
REM The loop section
_Loop:
REM Start the main loop
do
REM Draw A dot
dot RND(470),RND(620)
REM Add 1 to the variable containing the
REM amount of dots on the screen
dot=dot+1
REM If you press the space key it gets out
REM of the loop and goes to the end
if spacekey()=1 then goto _end
REM Syncronizaion
sync
REM Loop it to start another sequence,
REM adding another dot.
loop
REM The end Section
_end:
REM Prints how many dots were on the
REM screen when you clicked space
Print "There were ",dot," dots"
REM Finally, the end!
end
Have you completed the purpose? If so, I want you to try at the challenge.
[Warning, for complete Newbies only]
Try to make it so when you go to the 'end' section, that instead of ending it, it waits for you to press space key
again so that it can go back to the 'loop' section to continue putting dots on the screen. Making it so when you press space key to view the amount of dots on the screen, you can press the space key to go back, and forth, and so on.
Can you do this newcomers?
I'll update for the next challenge when some one gets this.
So what do you think guys? Was this a waste of time?
Enjoy Life while your still alive.
Enjoy a recees anytime!