Play breakout clone
Breakout500's itch.io pageCharacter Count494
Game Code
▥=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)>6if t or y<0do
if(t)h+=1?"\ag"
웃(x/8,(y+r)/8,0)r*=-1end
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*=-1elseif y>128do
l-=1s=0r=-2x=p y=▥?"\ae0cg"
end?"★"..h.." ♥"..l,0,0
x+=s y+=r end
Leave a comment
Log in with itch.io to leave a comment.





Comments
I kind of like the bug that if you get in between columns, it clears the entire column.
Very neat little breakout.
I went through some lengths to enable this :D In the beginning I used map collision, but then I decided that it would be more fun to have pixel perfect collision.
This is really cool - found myself hooked trying to complete it on first go (alas, I failed).>
Was then wondering how you stored all the block states, then saw MSET and was like "ah..."
(I keep forgetting about using the Map data for TTJ, reckon I may have to change that next time!)
Congrats on the solid entry mate, nice one 👍
Thank you so much! Yes, I first generated a table for it, but then I remembered that map is already there for me to use :)
This is really cool. Great use of map()
Thank you!
I'd have loved to incorporate power ups,but maybe next time ^^