lil' pico-8 projeccts
1pico-8 cartridge // http://www.pico-8.com
2version 42
3__lua__
4board_width=107
5board_height=102
6
7muncher_x=17
8muncher_y=20
9move_right=0
10
11function _update()
12 if btn(➡️) and move_right==0 then move_right=18 end
13 if move_right>0 then
14 muncher_x+=1
15 move_right-=1
16 end
17end
18
19function _draw()
20 cls(1)
21 spr(1,muncher_x,muncher_y)
22
23 x1=(127-board_width)/2
24 y1=(127-board_height)/2
25 x2=(127+board_width)/2
26 y2=(127+board_height)/2
27
28
29 rect(x1,y1,x2,y2,14)
30 rect(x1+2,y1+2,x2-2,y2-2,14)
31
32 dy=(board_height-4) / 5
33 for i=1,5 do
34 local y=y1+2+(dy*i)
35 line(x1+2,y,x2-2,y,14)
36 end
37
38 dx=(board_width-4) / 6
39 for i=1,6 do
40 local x=x1+3+(dx*i)
41 line(x,y1+2,x,y2-2,14)
42 end
43
44
45 --rect(12,17,115,115,14)
46
47 --line(12,30,115,30,14)
48 --line(12,50,115,50,14)
49 --line(12,70,115,70,14)
50 --line(12,90,115,90,14)
51
52 print("level: 1",2,4,7)
53
54 line(40,2,94,2,7)
55 print("multiples of 2",40,4,7)
56 line(40,10,94,10,7)
57end
58__gfx__
5900000000000707000007070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6000000000bb7070b0bb7070b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6100700700b0bbbbb0b0b7b7b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6200077000b000000bb000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6300077000bbbbbbbbb000000b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6400700700000b0b00bbbbbbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6500000000000b0b00000b0b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
6600000000bbbb0bbbbbbb0bbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000