Greetings super 10 line BASIC programmers! Lots of awesome looking games again this year!
Here's my entry for the Atari 2600 in the PUR-80 Category this time using Atari Flashback BASIC which is compatible with Atari vwBASIC for the SuperCharger, the two cross compilers are linked in my signature. I am working on a 3rd cross compiler for the Atari 8-bit and 5200 also, hopefully it will be finished in time for next years contest!
Click to try TronOnePlayer online in the new Javatari Emulator!
Tron one player is a colorful tile mapped light cycle game that takes place on a game grid 10x larger than your Television screen!
Tron has already defeated Sark and is tearing up the virtual world, you can go off the game grid but things may not be entirely visible and your chances of crashing increase the longer you stay there; you can also blow up the system RAM and crash in spectacular fashion.
The game ends (purple screens) when you crash into your own lightcycle trail, or into system memory (travel too far to the left or above). How long can you stay alive? Watch the clock for high score or check your Atari wrist computer!
The soundscapes change depending upon how long you hold the stick in a given direction, light taps will play crescendos and mini tunes whilst holding it will yield other interesting familiar logarythmic sounds.
Here is the game listing with big constants and plenty of white space:
0 if g=0 then g=1:for x=18 to 239:virtualworld(x)=0:next x else f=f+1:goto 2
1 for x=0 to 9:g=g+10:virtualworld(x)=g:next x: x=10:y=5:h=1: rem (dir right)
2 if f<4 then scrollvirtualworldtoggle=0:return else scrollvirtualworldtoggle=1
3 if joy0left=1 then e=1:h=0:i=0:j=0:AUDC0=8:AUDF0=BITIndex:SUSTAINFORFRAMES=15
4 if joy0right=1 then h=1:e=0:i=0:j=0:AUDC0=6:AUDF0=BITIndex:SUSTAINFORFRAMES=15
5 if joy0down=1 then i=12:e=0:h=0:j=0:AUDF0=11:AUDC0=BITIndex:SUSTAINFORFRAMES=15
6 if joy0up=1 then j=12:i=0:e=0:h=0:AUDC0=3:AUDF0=BITIndex*2:SUSTAINFORFRAMES=15
7 x=x-e:x=x+h:l=i/12:y=y+l:l=j/12:y=y-l:BYTErowoffset=BYTErowoffset+i:rem TRON!!
9 if vwpixel(x,y,on)>0 then COLUBK=100:SUSTAINFORFRAMES=100:goto 6 else return
Note: In the attached listing there are some data statements present that do not affect the game, they can be removed and both compilers will still compile the game for the Atari 2600, however they are necessary to play it on the new Atari 2600 Portable console because that console does not recognize small programs (the text is just motivational text to encourage programming games in BASIC!)
Hope everyone enjoys!