Created
February 4, 2019 12:45
-
-
Save omgmog/ea2bd690bdcc2bb0484fa1affc877d97 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 16 | |
__lua__ | |
function _init() | |
x=-40 | |
y=64 | |
body={1,3} | |
head={5,7} | |
s={ | |
{9,25}, | |
10, | |
{26,11}, | |
27, | |
28 | |
} | |
t=1 | |
end | |
function _update() | |
t+=0.1 | |
x+=0.2 | |
if x > 127 then x = -64 end | |
end | |
function _draw() | |
cls() | |
local fr=flr(t)%2+1 | |
fillp() | |
palt(12,true) | |
if flr(t)%2 == 0 then | |
pal(0,7) | |
fillp(0x820) | |
else | |
pal(0,7) | |
fillp(0x82) | |
end | |
rectfill(0,72,127,127,12) | |
pal() | |
spr(body[fr],x,y,2,2,false) | |
spr(body[fr],x+16,y,2,2,true) | |
spr(head[fr],x+32,y,2,2,false) | |
spr(s[3][fr],x+4,y-4) | |
spr(s[4],x+12,y-4) | |
spr(s[5],x+20,y-4) | |
spr(s[1][fr],x+12,y-12) | |
spr(s[2],x+20,y-12) | |
print("no0oo!", x+34, y-10, 7) | |
end | |
__gfx__ | |
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | |
00000000000000000000000000000000000000000000000000000000000000000000000000000ee2000000000000000000000000000000000000000000000000 | |
0070070000000000000000000000000000ffffff00000003b3b3b00000000000000000000000022202e0000000000eee00000000000000000000000000000000 | |
000770000000000000ffffff0000000ff454f4f4000000b3333333b000000003b3b3b0000e2e0222022e00000000222200000000000000000000000000000000 | |
000770000000000ff454f4f400000ff44454444400000b3003333330000000b3333333b00e220000022200000eee222200000000000000000000000000000000 | |
0070070000000ff4445444440000f444444544440000b3300333333000000b300333333002200000000000000202e22200000000000000000000000000000000 | |
000000000000f44444454444000f4f444444555500003b33333311300000b33003333330020000000002ee0002202eee00000000000000000000000000000000 | |
00000000000f4f444444555500f4f4444445ffff0003b3333331110000003b33333311300020000000022e000022222200000000000000000000000000000000 | |
0000000000f4f4444445ffff004f4444445f4f4400033333331110000003b3333331110000000ee2000000000000000000000000000000000000000000000000 | |
00000000704f4444445f4f447044444555f4444400033333333300000003333333111000000002220000000000000000022ee000000000000000000000000000 | |
000000000044444555f444440004455ff54444440003333330000000000333333333000000ee022200000eee000000000222e000000000000000000000000000 | |
000000000704455ff54444440700044445444444000333333000000000033333300000000e22000000e02222e00eeee00222e000000000000000000000000000 | |
00000000000004444544444400000000445444440000333000000000000333333000000002220000022e222202e2e2e222222000000000000000000000000000 | |
000000000077000044544444007700000000000007000000070000000700333007000000022000000002e22202222ee22ee22e00000000000000000000000000 | |
0000000000000777000000000000077700000000000707770000000000070777000000000022000020022eee2222222002200200000000000000000000000000 | |
00000000000000007700777700000000770077770000000000000000000000000000000000000000022222222200002000200200000000000000000000000000 |
Author
omgmog
commented
Feb 4, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment