Breakout500
Controls
Left Arrow to go left
Right Arrow to go right
Restart the game for a new try
Breakout in 500 chars
Breakout is one of the first games I played, so I knew it had a good hook - I just had to squeeze it into 500 chars. This is the whole code for the game, including gfx and sfx:
▥=120웃=mset for x=1,14 do for y=2,9 do 웃(x,y,1)sset(x,y,7) end end x=64s=.2r=2p=56l=3h=0y=▥ function _draw() t=pget(x+s,y)>6 if t or x<0or x>127do 웃((x+s)/8,y/8,0)s*=-1 if(t)h+=1?"\ae" end cls(1)map()pset(x,y)rect(p,▥,p+16,▥) if(btn(1))p+=3 if(btn(0))p-=3 t=pget(x,y+r)>6 if t or y<0do if(t)h+=1?"\ag" 웃(x/8,(y+r)/8,0)r*=-1 end if(l<1)s=0r=0?"k.o.",58,99 if y==▥ and x>p and x<p+18do s+=sin((x-p)/16)*.5 ?"\ac" r*=-1 elseif y>128do l-=1s=0r=-2x=p y=▥?"\ae0cg" end?"★"..h.." ♥"..l,0,0 x+=s y+=r end
It is somewhat legible, let me know if you're interested in annotations.
Published | 11 hours ago |
Status | Released |
Platforms | HTML5 |
Author | taxicomics |
Made with | PICO-8 |
Tags | No AI, Retro, tweettweetjam |
Leave a comment
Log in with itch.io to leave a comment.