pico-8 cartridge // http://www.pico-8.com version 43 __lua__ bullet1 = {x = 10, y = 20, pairs = pairs, result = ""} bullet2 = {x = 30, y = 40, pairs = pairs, result = ""} gbullets = {bullet1, bullet2} function draw_gbullets_old() local g=_ENV for b in all(gbullets) do _ENV=b --working circfill(x,y,3,7) circ(x,y,3,8) rectfill(x,y,3,3,8) rect(x,y,3,3,7) line(x,y,x+7,y+7,7) pset(x,y,7) pget(x,y) --ovals work, but drawing algorithm doesn't match per pixel, so leave out of this test --ovalfill(x,y,3,3,8) --oval(x,y,3,3,7) spr(1,x,y) sspr(0,0,3,3,x,y,6,6) fset(7,0,true) fget(7,0) clip(x,y,3,3) clip() pal(7) pal() --not working --print("bullets drawn") --printh --rrectfill(x,y,3,3,3,8) --rrect(x,y,3,3,3,7) --map(0,0,x,y,3,3,7) --camera(x,y) --camera() end _ENV=g end function _draw() cls() draw_gbullets_old() end __gfx__ 00000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000551110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00700700055500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00077000555559900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00077000cccc99990000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00700700cc9999990000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000cc99999c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000cccccccc0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000