Log In  

Instructions

Shoot the targets to get more ammo.

Game ends when ammo runs out.

Use arrows to aim, Z to shoot.

Cart #mrtr555-0 | 2021-11-15 | Code ▽ | Embed ▽ | No License
3

(press the ▶ button to start)

Source code

555 characters

srand(555)a,b,c,d,x,m,n=btnp,127,0,8,64,3,-12::r::c+=1p,l,e=64,{},c/2%16+1for
i=0,b do p=i>56and i<72and p or
p+rnd(e)-e/2add(l,p)end
y,o=l[x],rnd(48)\1+1if
rnd()>0.5then
o=b-o end
q=l[o]::s::k=a()m,n=mid(m+(k>>1&1)-(k&1),-16,16),mid(n+(k>>3&1)-(k>>2&1),-16)if a(4)then
d=max(d-1)f,g,h,j=x,y,m/4,n/4end
cls(c%3+1)?'★',x-3,y-3,7
for v,p in ipairs(l)do
line(v-1,p+1,v-1,b,0)end?'웃',o-3,q-2,c%3+8
circ(x+m,y+n,1,6)if j then
j+=1/8f+=h
g+=j
pset(f,g,9)if f<1or f>b or
g>l[f\1]then h,j=f,nil
if abs(h-o)<2.5then d+=3goto r end end end?'🅾️'..d,4,119
flip()goto s
P#125170 2023-02-02 13:56 ( Edited 2023-02-02 13:58)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 13:12:37 | 0.010s | Q:16