Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function animateSnowballs(timePassed:int):void
- {
- for (var i:int = 0; i < _snowballs.length; i++)
- {
- var snowflake:Snowflake = _snowballs[i];
- snowflake.y += _ySpeed * timePassed / 10;
- if (snowflake.y > 800)
- {
- snowflake.y = -15;
- snowflake.x = Math.random() * 480;
- }
- }
- }
Add Comment
Please, Sign In to add comment