Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --paddle
- padx=52
- pady=122
- padw=24
- padh=4
- function movepaddle()
- if btn (0) then
- padx-=3
- elseif btn (1) then
- padx+=3
- end
- end
- function_update()
- movepaddle()
- end
- function_draw
- --clear the screen
- rectfill(0,0,128,128,3)
- --draw the paddle
- rectfill(padx, pady, padx+padw,pady+padh,3)
- end
Advertisement
Add Comment
Please, Sign In to add comment