Created
October 8, 2019 13:28
-
-
Save natcl/156ecabd307c5cc95fb34852d2e2e5af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pico-8 cartridge // http://www.pico-8.com | |
version 18 | |
__lua__ | |
border_size=4 | |
brick_width=10 | |
brick_height=7 | |
function _init() | |
cls() | |
//for r=0,11 do | |
//for c=0,11 do | |
//draw_brick(bricks.sk,r,c) | |
//end | |
//end | |
end | |
function _draw() | |
draw_border() | |
draw_level1() | |
end | |
function draw_border() | |
rectfill(0,0,border_size-1,127,2) | |
rectfill(127-border_size+1,0,127,127,2) | |
rectfill(0,0,127,border_size-1,2) | |
rectfill(0,12*brick_height+border_size,127-border_size,brick_height*12+border_size*2-1,2) | |
end | |
function draw_brick(b,x,y) | |
spr(b,x*brick_width+border_size,y*brick_height+border_size,2,1) | |
end | |
-->8 | |
bricks = { | |
bl = 49, | |
gn = 37, | |
br = 53, | |
go = 51, | |
pi = 33, | |
b_bl = 17, | |
b_gn = 1, | |
b_br = 3, | |
b_pi = 19, | |
sk = 21, | |
dia = 39, | |
gr = 35, | |
sh = 29 | |
} | |
-->8 | |
function draw_level1() | |
draw_brick(bricks.sk, 0, 0) | |
draw_brick(bricks.br, 5, 0) | |
draw_brick(bricks.br, 6, 0) | |
draw_brick(bricks.sk, 11, 0) | |
draw_brick(bricks.gr, 0, 1) | |
draw_brick(bricks.gr, 11, 1) | |
draw_brick(bricks.gr, 4, 1) | |
draw_brick(bricks.gr, 7, 1) | |
draw_brick(bricks.gn, 5, 1) | |
draw_brick(bricks.gn, 6, 1) | |
draw_brick(bricks.dia, 3, 2) | |
for x=4,7 do | |
draw_brick(bricks.gn, x, 2) | |
end | |
draw_brick(bricks.dia, 8, 2) | |
draw_brick(bricks.b_br, 1, 3) | |
draw_brick(bricks.dia, 2, 3) | |
for x=3,8 do | |
draw_brick(bricks.bl, x, 3) | |
end | |
draw_brick(bricks.dia, 9, 3) | |
draw_brick(bricks.b_bl, 10, 3) | |
draw_brick(bricks.gr, 1, 4) | |
draw_brick(bricks.go, 2, 4) | |
draw_brick(bricks.go, 3, 4) | |
draw_brick(bricks.go, 8, 4) | |
draw_brick(bricks.go, 9, 4) | |
draw_brick(bricks.gr, 10, 4) | |
draw_brick(bricks.dia, 5, 5) | |
draw_brick(bricks.dia, 6, 5) | |
draw_brick(bricks.dia, 5, 6) | |
draw_brick(bricks.dia, 6, 6) | |
draw_brick(bricks.gr, 1, 7) | |
draw_brick(bricks.go, 2, 7) | |
draw_brick(bricks.go, 3, 7) | |
draw_brick(bricks.go, 8, 7) | |
draw_brick(bricks.go, 9, 7) | |
draw_brick(bricks.gr, 10, 7) | |
draw_brick(bricks.b_gn, 1, 8) | |
draw_brick(bricks.dia, 2, 8) | |
for x=3,8 do | |
draw_brick(bricks.gn, x, 8) | |
end | |
draw_brick(bricks.dia, 9, 8) | |
draw_brick(bricks.b_pi, 10, 8) | |
draw_brick(bricks.dia, 3, 9) | |
for x=4,7 do | |
draw_brick(bricks.bl, x, 9) | |
end | |
draw_brick(bricks.dia, 8, 9) | |
draw_brick(bricks.gr, 4, 10) | |
draw_brick(bricks.gr, 7, 10) | |
draw_brick(bricks.bl, 5, 10) | |
draw_brick(bricks.bl, 6, 10) | |
draw_brick(bricks.pi, 5, 11) | |
draw_brick(bricks.pi, 6, 11) | |
end | |
__gfx__ | |
00000000d666666667000000d6666666670000006666666666000000666666666600000044444444440000003333333333000000000000000000000000000000 | |
000000005d666666760000005d6666667600000060666666060000006666bb666600000040444444040000003033333303000000000000000000000000000000 | |
0070070055d3dddd6600000055d4dddd660000006666666666000000666bbbb66600000044444444440000003333333333000000000000000000000000000000 | |
0007700055333333660000005544444466000000666666666600000066bbbbbb6600000044444444440000003333333333000000000000000000000000000000 | |
0007700055d3dddd6600000055d4dddd660000006666666666000000666bbbb66600000044444444440000003333333333000000000000000000000000000000 | |
0070070055111111d600000055111111d600000060666666060000006666bb666600000040444444040000003033333303000000000000000000000000000000 | |
00000000511111111d000000511111111d0000006666666666000000666666666600000044444444440000003333333333000000000000000000000000000000 | |
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
00000000d666666667000000d6666666670000007777777777000000cccccccccc000000eeeeeeeeee0000009999999999000000000000000000000000000000 | |
000000005d666666760000005d666666760000007006666007000000c0cccccc0c000000e0eeeeee0e0000009099999909000000000000000000000000000000 | |
0000000055dcdddd6600000055dedddd660000007068008607000000cccccccccc000000eeeeeeeeee0000009999999999000000000000000000000000000000 | |
0000000055cccccc6600000055eeeeee660000007660000667000000cccccccccc000000eeeeeeeeee0000009999999999000000000000000000000000000000 | |
0000000055dcdddd6600000055dedddd660000007060660607000000cccccccccc000000eeeeeeeeee0000009999999999000000000000000000000000000000 | |
0000000055111111d600000055111111d60000007006666007000000c0cccccc0c000000e0eeeeee0e0000009099999909000000000000000000000000000000 | |
00000000511111111d000000511111111d0000007777777777000000cccccccccc000000eeeeeeeeee0000009999999999000000000000000000000000000000 | |
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
00000000effffffff7000000d6666666670000003bbbbbbbb7000000d66666666700000000000000000000000000000000000000000000000000000000000000 | |
000000002effffff7f0000005d6666667600000053bbbbbb7b0000005d6666667600000000000000000000000000000000000000000000000000000000000000 | |
0000000022eeeeeeff00000055dddddd6600000055333333bb00000055ddbddd6600000000000000000000000000000000000000000000000000000000000000 | |
0000000022eeeeeeff00000055dddddd6600000055333333bb00000055db3bdd6600000000000000000000000000000000000000000000000000000000000000 | |
0000000022eeeeeeff00000055dddddd6600000055333333bb00000055ddbddd6600000000000000000000000000000000000000000000000000000000000000 | |
0000000022111111ef00000055111111d6000000551111113b00000055111111d600000000000000000000000000000000000000000000000000000000000000 | |
00000000211111111e000000511111111d0000005111111113000000511111111d00000000000000000000000000000000000000000000000000000000000000 | |
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
00000000c6666666670000009aaaaaaaa70000004999999997000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
000000005c6666667600000049aaaaaa7a0000002499999979000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
0000000055cccccc6600000044999999aa0000002244444499000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
0000000055cccccc6600000044999999aa0000002244444499000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
0000000055cccccc6600000044999999aa0000002244444499000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
0000000055111111c6000000441111119a0000002211111149000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
00000000511111111c00000041111111190000002111111114000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
__sfx__ | |
0101000014457166570c650146500c6500c650156500d6500d650156500c6500c650156500c6500d6500f65010650116501165013650156501765017650146501665014650166501665014650166501665016650 | |
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
001000001a6500f65012650146501d650000001b6501a6501a65019650136501265012650106500e6500d65003650000000065000000000000000000000000000000000000000000000000000000000000000000 | |
__music__ | |
00 04424344 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment