Ball Bouncer
A simple arcade game made with only 500 characters for TweetTweetJam 9.
Use the left and right arrows to move the paddle. Press X to restart.
Score points by bouncing balls on the paddle, with consecutive bounces scoring more points. The game ends after 60 seconds.
Source code: (exactly 500 characters, counting new lines as single characters)
pal(7,14)t,w,c,s,b=0,53,0,0,{}function _draw() if(t*.25>#b)add(b,{62+rnd(2),30,63,29+rnd(2)*.1,rnd(6)+7}) cls()?"score:"..s,16,2,6 ?"time:"..flr(60-t),84,2 if(btnp(5))run() if(t>=59)print("press ❎ to restart",27,60)return if(btn(0))w-=5 if(btn(1))w+=5 w=mid(w,99)rectfill(w,121,w+28,124) t+=1/30 for i=1,#b do x,y,g,h,p,d=unpack(b[i])if d~=1 then x,y,g,h=x+x-g,y+y-h+.04,x,y if(pget(x,y+2)==6)y,h=h,y;c+=1;s+=c if(x<2 or x>125)x,g=g,x if(y>128)d,c=1,0 circfill(x,y,2,p)b[i]={x,y,g,h,p,d}end end end
Status | Released |
Platforms | HTML5 |
Author | OgelGames |
Made with | PICO-8 |
Tags | 2D, Arcade, High Score, Physics, PICO-8, Pixel Art, Short, Singleplayer |
Average session | A few minutes |
Inputs | Keyboard |
Links | Lexaloffle BBS |
Comments
Log in with itch.io to leave a comment.
This one worked great-and the game did all the explaining,which lead to a nice learning curve and good difficulty ramping. Great work!
Cute! Simple but fun
RT