Imported from Joplin
This commit is contained in:
16
pico-8/snipppets.md
Normal file
16
pico-8/snipppets.md
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user