Add a basic guy
This commit is contained in:
34
pyras.p8
Normal file
34
pyras.p8
Normal 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
|
Reference in New Issue
Block a user