Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

Pico Pool 3 CushionsView game page

A very small pool game for #TweetTweetJam
Submitted by pautomas — 10 hours, 51 minutes before the deadline
Add to collection

Play game

Pico Pool 3 Cushions's itch.io page

How many characters of code did you use?
551

If you're comfortable with it, paste your game code here, so we can marvel at your achievement!
b,o,a,s,w=btnp,64,0,0,0
x,y,bx,by,dx,dy=o,o,o,o,0,0
vx,vy=rnd(99)+10,rnd(99)+10
::_::cls()rectfill(10,10,120,120,3)x0,y0=x,y
if(b(⬆️))y-=1
if(b(⬇️))y+=1
if(b(⬅️))x-=1
if(b(➡️))x+=1
if(s==0 and b(🅾️))a+=1 w=0 dx,dy=bx-x,by-y s=sqrt(dx^2+dy^2)/20
if(bx<10)dx*=-1 bx=10 w+=1
if(bx>120)dx*=-1 bx=120 w+=1
if(by<10)dy*=-1 by=10 w+=1
if(by>120)dy*=-1 by=120 w+=1
s*=.96
bx+=dx*s
by+=dy*s
?"●",bx-3,by-2,7
?"●",vx-3,vy-2,8
line(bx,by,x,y,9)
if(abs(bx-vx)<4 and abs(by-vy)<4)goto w
flip()goto _::w::cursor(40,2)
?"hit! ★"..(a<2 and "★" or "")..(w==3 and "★" or "")

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet