Jump to content

Join the World of Atari!

Sign In or Create Your Atari I/O Account to join the party! Membership is always free! Gain full access to an amazing new retrogaming community with UNLIMITED member features, weekly high score championships, and prizes. Join other friendly retrogamers as we celebrate nostalgia & classic games, from Atari to Nintendo, Sega, TurboGrafx-16 and beyond!

Photo

Contest - write an Atari 2600 game in 10 lines of BASIC


  • Please log in to reply
4 replies to this topic

#1 Mr SQL

Mr SQL

    Cherry Member

  • Member
  • 17 posts

Posted 03 March 2018 - 02:18 PM

BASIC10linerContestFun.JPG

 

The classic home computer BASIC programming contest is accepting entries for the Atari 2600 again this year!

 

Eligible categories are 10 lines of 120 characters and 10 lines of 256 characters. 

 

Atari Flashback BASIC and SuperCharger BASIC both support an old-school mode where you can write classic BASIC programs, hope some retro gamers are inspired to write a BASIC 10 line game! :)

 

There's more info and an example of my entry last year into the 10x80 category (that category has stricter entrance guidelines this year that exclude the VCS) along with the Flashback BASIC manual and download link.

 

The contest deadline is in 3 weeks!

 

BASIC is cool because of the amazing things that can be done in just 10 lines of code; check out some of the some of the amazing 10 line BASIC games from last year:

 

http://gkanold.wixsi...games-list-2017

 

 


  • Justin and RickR like this

ATARI FLASHBACK BASIC! Make games for the AFP with awesome  graphics, animation and a built in tracker/sequencer! Compatible with all Atari consoles! The IDE is already installed on your PC! Atari Flashback BASIC is cross compatible with the SuperCharger too! :)

AFB games can be recompiled with no changes using the SuperCharger BASIC compiler, available at Relationalframework.com/vwBASIC


#2 kamakazi20012

kamakazi20012

    Pear Member

  • Member
  • 1,335 posts

Posted 04 March 2018 - 01:06 AM

Wow...10 lines of BASIC code for a 2600 game?  Is that even possible?  It takes a LOT just to get that machine to do a little.


Edited by kamakazi20012, 04 March 2018 - 01:07 AM.

  • Justin and Mr SQL like this

#3 Mr SQL

Mr SQL

    Cherry Member

  • Member
  • 17 posts

Posted 04 March 2018 - 03:15 PM

Wow...10 lines of BASIC code for a 2600 game?  Is that even possible?  It takes a LOT just to get that machine to do a little.

 

Yes, BASIC is so simple it makes it easy to write a fun Atari game in just 10 lines of code! :)

 

Flashback BASIC and SuperCharger BASIC have familiar classic BASIC graphics commands including semigraphics and sprite commands and also a soft blitter chip like the Niintendo PPU that you can use to scroll the screen around.

 

Take a look at my entry in the 10 lines x 120 characters category from 2016, 9lineBlitzII:

 

0 data city 1,4,2,5,3,2,3,1,4,1,1,1,5,2,2,3,1,4,1,4,3,1,4,4,1,1,2,2,3,1,3,4,5,4,4,3,4,5,1,2,4,1,5,2,2,3,1,3,1,1,4,1
1 if g=0 then for j=0 to 7:player1(j)=189:player0(j)=pl(j):next j:BYTErowoffset=120:COLUPF=$50:COLUP0=$b4 else goto 3
2 for j=20 to 71:k=j-20:k=city(k)+14:for i=k to 19:vwpixel(j,i,on):next i,j:player0y=96:player0x=84:COLUP1=$74:y=21:g=1
3 COLUBK=0:AUDV0=0:scrollvirtualworldtoggle=1:BITIndex=BITIndex+1:missile0x=missile0x+2:data pl 0,224,127,231,252,192
4 if joy0fire=1 and y>18 then AUDF0=6:AUDC0=8:AUDV0=15:x=BITIndex+9:y=11:i=96-player0y:i=i/10:y=y+i:data P 128,0
5 if y<19 then vwpixel(x,y,bindplayer1):j=y-10:y=y+1:COLUP1=M(j) else player1y=0:data M $64,$54,$b4,$a4,$32,$44,$c4,$94
6 if y<20 and vwpixel(x,y,poll)>0 then vwpixel(x,y,flip):player1x=0:player1y=0:AUDC0=y:y=21:AUDF0=4:AUDV0=15:data N $f4
7 if BITIndex>71 then BITIndex=0:player0y=player0y-2 else missile1x=missile1x+1:missile1y=missile1y+3:data O $54,66,$42
8 if CXP0FB>126 then CXCLR=0:g=0:for i=0 to 255:AUDF0=i:AUDV0=i:COLUBK=$34:next i else missile0y=missile0y+2

 

Attached File  9LineBlitzII.bin   8.25KB   18 downloads

 


  • Justin, RickR and dgrubb like this

ATARI FLASHBACK BASIC! Make games for the AFP with awesome  graphics, animation and a built in tracker/sequencer! Compatible with all Atari consoles! The IDE is already installed on your PC! Atari Flashback BASIC is cross compatible with the SuperCharger too! :)

AFB games can be recompiled with no changes using the SuperCharger BASIC compiler, available at Relationalframework.com/vwBASIC


#4 Mr SQL

Mr SQL

    Cherry Member

  • Member
  • 17 posts

Posted 06 March 2018 - 09:24 PM

Here's another 10 line game GATES, just wrote it on Sunday, it's in the 10x120 character category but has space for more features still (about 60% full):

 

0 if joy0up=1 then player0y=player0y+1:t=1-t else player0y=player0y-t:t=1-t: rem ** GATES, Atari 2600 10 lineBASIC Game!
1 if joy0left=1 then player0x=player0x-1 else player0x=player0x+2
2 if g=0 then BYTErowoffset=120:for j=0 to 3:player0(j)=pl(j):player0colors(j)=p2(j):next j:g=1 else goto 4
3 for x=20 to 70 step 10:for y = 0 to 19:vwpixel(x,y,on):next y,x:player0x=52:player0y=50:data pl 240,255,127,240
4 if e>7 then e=0:BITIndex=BITIndex+1:missile1x=missile1x+3:missile1y=missile1y+1 else e=e+1:return
5 if l<20 then l=l+1 else l=0:data p2 $36,$64,$76,$36:data R 3,8,2,0,3,8,8,5,3,0,3,5,8,8,5,5,8,5,3,0,2
6 scrollvirtualworldtoggle=1:AUDV0=0:COLUBK=0:x=BITIndex/10:rem get remainder!
7 if b=0 then x=x*10:x=x+10:vwpixel(x,R(l)+10,flip):vwpixel(x,R(l)+11,flip)
8 if  CXP0FB>127 then CXCLR=0:COLUBK=$34:AUDC0=4:AUDF0=l:AUDV0=31:g=0:BITIndex=0
9 if BITIndex>71 then BITIndex=0 else for j=0 to 9:rowcolors(j)=rowcolors(j)+2:next j

 

Here are the binaries for the SuperCharger and the Flashback Portable, also check out the incredible Defender II clone a few posts above in the 10x256 character category:

 

http://atariage.com/...-3#entry3978826


  • Justin and dgrubb like this

ATARI FLASHBACK BASIC! Make games for the AFP with awesome  graphics, animation and a built in tracker/sequencer! Compatible with all Atari consoles! The IDE is already installed on your PC! Atari Flashback BASIC is cross compatible with the SuperCharger too! :)

AFB games can be recompiled with no changes using the SuperCharger BASIC compiler, available at Relationalframework.com/vwBASIC


#5 Mr SQL

Mr SQL

    Cherry Member

  • Member
  • 17 posts

Posted 12 March 2018 - 10:06 PM

Here's the updated version of GATES (still in 10 lines), and a high score contest!

 

Share your gameplay footage to compete, if you play in Javatari  or Stella you can record your game with WINDOWS+G to bring up the built in game recorder.

 

 


  • Justin likes this

ATARI FLASHBACK BASIC! Make games for the AFP with awesome  graphics, animation and a built in tracker/sequencer! Compatible with all Atari consoles! The IDE is already installed on your PC! Atari Flashback BASIC is cross compatible with the SuperCharger too! :)

AFB games can be recompiled with no changes using the SuperCharger BASIC compiler, available at Relationalframework.com/vwBASIC





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users