Guest User

Untitled

a guest
Jul 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public function animateSnowballs(timePassed:int):void
  2. {
  3. for (var i:int = 0; i < _snowballs.length; i++)
  4. {
  5. var snowflake:Snowflake = _snowballs[i];
  6. snowflake.y += _ySpeed * timePassed / 10;
  7.  
  8. if (snowflake.y > 800)
  9. {
  10. snowflake.y = -15;
  11. snowflake.x = Math.random() * 480;
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment