Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function moveBird(gc)
- print("Bird has moved")
- gc:drawRect(50,by,30,30)
- by=by+1
- end
- function jumpBird(gc)
- print("Jump")
- gc:drawRect(50,by-7,30,30)
- moveBird(gc)
- end
- function on.construction()
- by = 50
- timer.start(1)
- end
- function on.arrowUp()
- function on.paint(gc)
- jumpBird(gc)
- end
- end
- function on.timer()
- function on.paint(gc)
- moveBird(gc)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement