Advertisement
Guest User

BITSBOX111

a guest
Nov 13th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. fill('tenniscourt2')
  2.  
  3. player = stamp('hamster2', 650, 900, 200)
  4. ball = stamp('bomb', random(200,500), 510, 100)
  5.  
  6. function touching(){
  7. player.aim(x, 900)
  8. player.move(UP, 20)
  9. }
  10.  
  11. function loop(){
  12.  
  13. if(player.hits(ball)){
  14. ball.move(random(200,450),510,random(400,1000))
  15. }
  16.  
  17. if(ball.y == 510){
  18. ball.move(random(80, 700), 980, 600)
  19. }
  20.  
  21. if(ball.y > 910){
  22. this.explode(ball)
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement