Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(asteroid.body.velocity.y<100)
- spaceship.health-=10;
- else if(asteroid.body.velocity.y<200)
- spaceship.health-=20;
- else
- spaceship.health-=30;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement