Play game
PICO-Darts's itch.io pageHow many characters of code did you use?
498
Include your code here, if you'd like to show it off!
function _init()f=0h=3j=25ty=25s=0m=0tt=60x=0y=133
end
function _update60()t=time()/1.2
if not(sh)then b=((sin(t)+1)*40)+24if(h==1)j=b if(f>4)f=0s=0
if(h==2)ty=b
if(btnp(❎))h+=1y=133m=0if(h==3)sh=true
if(h>3)h=1
else
m+=1if(m>tt)m=0
y=128-((1-((m/tt)-1)^2)*(128-ty))x=j
if(abs(ty-y)<2)s+=8-flr(sqrt((64-x)^2+(64-y)^2)/6)f+=1sh=false
end
end
function _draw()cls(0)for i,c in pairs({3,7,3,7,3,8})do circfill(64,64,8*(7-i),c)end?"⬆️",j-3,118,8
?"➡️",4,ty-3
?"✽",x-3,y-3,9
?"✽"..5-f.." tot "..s,10,4
end
Leave a comment
Log in with itch.io to leave a comment.
Comments
This is fun, the aim moves just fast enough to make you miss the centre, but slow enough to feel like when you miss, it's your own fault.
I spent a bit of time working out a good timing, I’m glad it payed off! :)
this is pretty good, especially for a first game jam
the way you throw darts is really nice aswell
nice!
Thank you, I am glad you liked it!