35 lines
1.3 KiB
Lua
35 lines
1.3 KiB
Lua
pico-8 cartridge // http://www.pico-8.com
|
||
version 42
|
||
__lua__
|
||
function _init()
|
||
x=64
|
||
y=64
|
||
z=false
|
||
end
|
||
|
||
function _update()
|
||
if(btn(⬅️))x-=1
|
||
if(btn(➡️))x+=1
|
||
if(btn(⬆️))y-=1
|
||
if(btn(⬇️))y+=1
|
||
if(btn(❎))z=not z
|
||
|
||
if(z) then s=1 else s=0 end
|
||
|
||
end
|
||
|
||
|
||
function _draw()
|
||
cls()
|
||
spr(s,x,y)
|
||
end
|
||
__gfx__
|
||
00000000444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||
00000000445544440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||
00700700444454440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||
00077000445544440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||
00077000444454440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||
00700700444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||
00000000444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||
00000000444444440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|