diff --git a/pyras.p8 b/pyras.p8 new file mode 100644 index 0000000..3048257 --- /dev/null +++ b/pyras.p8 @@ -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