Files
wiki/pico-8/snipppets.md
2021-10-29 14:50:40 -04:00

278 B

Snipppets

Draw Target

Function Draw_Target(x,y) circfill (x,y,16,8) circfill (x,y,12,7) circfill (x,y,8,8) circfill (x,y,4,7)

Move Player

Function Move_Player() If (BTN(0)) PX-=1 --Left If (BTN(1)) PX+=1 --Right If (BTN(2)) PY-=1 --Up If (BTN(3)) PY+=1 --Down END