Jump to content

How to program a simple game?


D-Man

Recommended Posts

I was teaching school when the Atari 800 came out.  I wrote a simple program (game) for my students to play.  Here it is:  The screen read On Your Mark, Get Set, Go!  Then it would start counting from 1000 to 0.  I would pick a number, say 73, and they would type run and then hit ESC to try to stop it on 73.  Whoever came the closest won a prize!

I have that program on an Atari floppy disk but no disk drive.  Could someone type that program for me so I can play it on Christmas when the grandkids come over.  I think it is only a few lines of typing in Graphics 2.  I do have the Atari 800 computer so I'll be able to type it in if somebody answers this.  Thanks in advance.

D-Man

Link to comment
Share on other sites

1 hour ago, D-Man said:

I tried it but it doesn't count down to 0.  It looks like it counting down 1000 to 0, then 900 to 0, then 800 to 0 and so on, but it goes so fast it's really hard to tell.  Also, how do I get it into Graphics 2.  Is it PRINT #6?

Try removing line 5 and instead typing line 5 as 35.  I didn't really like the clear screen as every pass through the loop.

The command for Graphics 2 would be:  "GRAPHICS 2" 

I found this site to be very helpful in remembering commands:  http://blog.3b2.sk/igi/Data/Atari/Basic/abasic.html#GRAPHICS

 

Link to comment
Share on other sites

7 hours ago, HDN said:

When you guys are done with this, I’m definitely porting it to VIC-20! Mine doesn’t work anymore, but that doesn’t mean I don’t mess around in BASIC on emulators still! (I really should get around to fixing that computer one of these days.)

We'll have to adjust some of the commands a bit for Commodore BASIC, but that's easily do-able.

Link to comment
Share on other sites

4 hours ago, D-Man said:

Well, we played my game at Christmas and all my grandchildren loved it!  We all had a lot of fun.  Thanks for all the help! Now I'm going to try and expand it and make it better for our next gathering! Thanks again.

Dennis

Great!  Thank you for the little trip down memory lane.  I hadn't done a BASIC program in decades, although I owe most of my career to fiddling around on those computers as a teenager.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...