Play game
Toot Ninja's itch.io pageHow many characters of code did you use?
499
Include your code here, if you'd like to show it off!
t={}
r=rnd
z=stat
h=print
e,l=0,0
::_::poke(0x5f2d, 1)if(#t<e/6+1)add(t,{1,20+r(82),r(120)-60,50+r(50),flr(rnd(5))+8})
cls(0)k=time()
f=k-l
l=k
b,v=m or 0,n or 0
m,n,o=z(32),z(33),z(34)>0
if(o)line(b,v,m,n,7)
for i=#t,1,-1 do
t[i][1]-=f/2
p=t[i][1]
x=t[i][2]+t[i][3]*p
y=130+sin(p/2)*t[i][4]circfill(x,y,7,t[i][5])
b,v=m-x,n-y
j=true
if(b*b+v*v<60 and o)p,j=-1,false e+=1 h("\acdfe")
if(p<0)deli(t,i)if(j)e=0h("\ai7e0fdc")
u=max(e,u)end
h("toot ninja",44,0,11)h("●:"..e.."\n★:"..u,1,9,6)flip()goto _
Leave a comment
Log in with itch.io to leave a comment.
Comments
Nice tribute to Fruit Ninja. I remember that game with great nostalgia.
This feels great! First mobile-first Pico-8 game I've encountered too!
This was so fun! I am amazed you even have sound effects!
Really cool little game, the line showing the slashing motions works really well
you know looking at it now, I think I could have gotten this down to 497...