lil' pico-8 projeccts

Add board to pico-munchers

Changed files
+39 -1
+39 -1
muncher.p8
··· 1 1 pico-8 cartridge // http://www.pico-8.com 2 2 version 42 3 3 __lua__ 4 + board_width=107 5 + board_height=102 6 + 4 7 function _draw() 5 8 cls(1) 6 - spr(1,20,20) 9 + spr(1,17,20) 10 + 11 + x1=(127-board_width)/2 12 + y1=(127-board_height)/2 13 + x2=(127+board_width)/2 14 + y2=(127+board_height)/2 15 + 16 + 17 + rect(x1,y1,x2,y2,14) 18 + rect(x1+2,y1+2,x2-2,y2-2,14) 19 + 20 + dy=(board_height-4) / 5 21 + for i=1,5 do 22 + local y=y1+2+(dy*i) 23 + line(x1+2,y,x2-2,y,14) 24 + end 25 + 26 + dx=(board_width-4) / 6 27 + for i=1,6 do 28 + local x=x1+3+(dx*i) 29 + line(x,y1+2,x,y2-2,14) 30 + end 31 + 32 + 33 + --rect(12,17,115,115,14) 34 + 35 + --line(12,30,115,30,14) 36 + --line(12,50,115,50,14) 37 + --line(12,70,115,70,14) 38 + --line(12,90,115,90,14) 39 + 40 + print("level: 1",2,4,7) 41 + 42 + line(40,2,94,2,7) 43 + print("multiples of 2",40,4,7) 44 + line(40,10,94,10,7) 7 45 end 8 46 __gfx__ 9 47 00000000000707000007070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000