Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --padla
- padx=52
- pady=122
- padw=24
- padh=4
- function movepaddle()
- if btn (0) and
- padx>0 then
- padx-=2
- elseif btn(1) and
- padx<104 then
- padx+=2
- end
- end
- function _update()
- movepaddle()
- end
- function _draw()
- rectfill(0,0,128,128,15)
- rectfill(padx, pady, padx+padw,pady+padw,14)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement