Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --projet 4
- --by game*
- function _init()
- p={
- pv=6,
- x=32,
- y=32,
- }
- end
- function _update()
- if btn(⬅️) then
- p.x-=1
- end
- if btn(➡️) then
- p.x+=1
- end
- if btn(⬆️) then
- p.y-=1
- end
- if btn(⬇️) then
- p.y+=1
- end
- if btn(❎) then
- p.pv-=1
- end
- end
- function _draw()
- cls()
- map(0,0,0,0,16,16)
- spr(4,p.x,p.y)
- print(p.pv,0,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment