Add a basic guy

This commit is contained in:
2021-11-09 23:39:06 +01:00
parent e43fde31f3
commit efbd39382b

34
pyras.p8 Normal file
View File

@ -0,0 +1,34 @@
pico-8 cartridge // http://www.pico-8.com
version 33
__lua__
guyposx=64
guyposy=64
guyspeedx=2
guyspeedy=2
function _update()
if btn(0) then
guyposx-=guyspeedx
end
if btn(1) then
guyposx+=guyspeedx
end
if btn(2) then
guyposy-=guyspeedy
end
if btn(3) then
guyposy+=guyspeedy
end
end
function _draw()
cls()
rect(guyposx,guyposy,guyposx,guyposy,3)
end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000