Play game
2tweetdodger's itch.io pageHow many characters of code did you use?
550
If you're comfortable with it, paste your game code here, so we can marvel at your achievement!
function _init()
p={x=63,y=100,dx=5,dy=3}
e={x=63,y=20}
b={x=e.x,y=e.y,s=1,}
gos=false
sc=0
scp=1/60
end
function _draw()
cls()
print("🐱",p.x,p.y)
print("█",e.x,e.y)
print("◆",b.x,b.y)
if(gos==true)go()
print("score="..flr(sc),10,10)
end
function _update()
if(p.x<5 or p.x>110)p.x=mid(5,110,p.x)
if(btn(0))p.x-=2
if(btn(1))p.x+=2
if(e.x>p.x)e.x-=1
if(e.x<p.x)e.x+=1
b.y+=b.s
if(b.y>130)b.y=e.y b.x=e.x b.s+=1/2
if(b.x>=p.x-p.dx and b.x<=p.x+p.dx and b.y>=p.y-p.dy and b.y<=p.y+p.dy)gos=true
sc+=scp
if(b.s>9)b.s=9
end
function go()
cls()
scp=0
end
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet