Something went wrong. Try again.
an npmx inspired game for PICO-8 npicomx.vinnymac.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849-- art: shared procedural visuals
function cloud(x,y) circfill(x,y,6,7) circfill(x+7,y+1,7,7) circfill(x+14,y,5,7) rectfill(x,y,x+14,y+5,7)end
function vbird(cx,cy,c) local w=sin(t()*4+cx)>0 and 1 or 0 line(cx-2,cy-w,cx,cy,c) line(cx,cy,cx+2,cy-w,c)end
function fire_sun(cx,cy) for i=0,7 do local a=i/8+t()*0.1 local r=8+sin(t()*3+i)*1.5 pset(cx+cos(a)*r,cy+sin(a)*r,9) end circfill(cx,cy,7,9) circfill(cx,cy,5,10) circfill(cx,cy,3,7)end
function draw_logo(cx,cy,sc) sc=sc or 2.4 local w=40 poke(0x5f55,0) rectfill(0,120,w,125,0) print("./ npicomx",0,120,7) print("/",4,120,12) -- blue slash poke(0x5f55,0x60) sspr(0,120,w,5,cx-w*sc/2,cy,w*sc,5*sc)end
function draw_balloon(cx,cy) cx+=sin(t()*0.07)*3 cy+=sin(t()*0.11)*2 local sq=1+sin(t()*0.9)*0.05 -- gentle jelly bounce for dx=-10,10 do local hy=sqrt(max(0,100-dx*dx))*sq line(cx+dx,cy-hy,cx+dx,cy+hy,bc[1+flr((dx+10)/3.4)%6]) end oval(cx-10,cy-10*sq,cx+10,cy+10*sq,1) line(cx-4,cy+9,cx-3,cy+17,4) line(cx+4,cy+9,cx+3,cy+17,4) rectfill(cx-4,cy+17,cx+4,cy+23,4) -- basket body for vx=-2,2,2 do line(cx+vx,cy+18,cx+vx,cy+22,2) end -- woven vertical staves for hy=19,21,2 do line(cx-3,cy+hy,cx+3,cy+hy,15) end -- lit weavers crossing over -> grid rect(cx-4,cy+17,cx+4,cy+23,9) -- rim rectfill(cx-8,cy-3,cx+8,cy+3,1) print("npmx",cx-7,cy-2,7)end