My first (of hopefully 3) entry for Tweet Tweet Jam 3!

CONTROLS:

⬆️/⬇️    Aim  
Z  (hold)    Shoot

Cartridge code (made with Pico 8 0.1.12c):

a=.9p={}f=1o=80r=103h=0k=line
c=circfill
b=btn::w::cls(12)x=1.1-sin(t())*.1k(17,o,17+sin(a)*f*4,o-cos(a)*f*4,8)k(r,o,r+sin(x)*8,o-cos(x)*8)c(99,160,76,3)c(16,160,76)
?"웃",r,o,6
?"웃",12,o,7
if(t()%1==0)add(p,{a=x,p=3+rnd(2),i=r,t=0})
if(b(2))a+=.01
if(b(3))a-=.01
if(b(4)and f<5)f+=.2h=1
if(not b(4)and h==1)add(p,{a=a,p=f,i=17,t=0})f=1h=0
for s in all(p)do
d=pget(s.x,s.y)e=s.t
if(d!=3)s.t+=.5s.w=s.x s.z=s.y
s.x=s.i+e*sin(s.a)*s.p
s.y=o+(e*.3)^2-e*cos(s.a)*s.p
if(e>1)k(s.w,s.z,s.x,s.y,0)
if(d>5 and d<8)print("p"..(d-5).." wins!",o,4)stop()end
flip()goto w
Updated 23 days ago
Published 28 days ago
StatusReleased
PlatformsHTML5
Rating
(1)
AuthorCraig Tinney
GenreAction, Shooter
Made withPICO-8
Tags2D, PICO-8, tweettweetjam

Comments

Log in with itch.io to leave a comment.

runtime error, line 20: attempt to call global 'p' (a table value) :(

yup! Cheaper than calling stop()

You could change h to an int: h=false becomes h=0, h=true becomes h=1 and testing if h is true become testing if h>0. That way, you get down to 547 characters (546 if you remove the first line break), plenty enough to close the game properly :D

You're not wrong! This is something I did for my new golf game so I think I will revisit this one and tidy it up more :)

Cart has now been updated in light of these changes, hope you enjoy the new version!

It's more satisfying this way!

Well done, that's a fun game :)