Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fill('tenniscourt2')
- player = stamp('hamster2', 650, 900, 200)
- ball = stamp('bomb', random(200,500), 510, 100)
- function touching(){
- player.aim(x, 900)
- player.move(UP, 20)
- }
- function loop(){
- if(player.hits(ball)){
- ball.move(random(200,450),510,random(400,1000))
- }
- if(ball.y == 510){
- ball.move(random(80, 700), 980, 600)
- }
- if(ball.y > 910){
- this.explode(ball)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement