Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Generate 5 random values from 1 to 9
- var points:Array = [];
- points.push(1 + FP.rand(9));
- points.push(1 + FP.rand(9));
- points.push(1 + FP.rand(9));
- points.push(1 + FP.rand(9));
- points.push(1 + FP.rand(9));
- for each (var value:int in points)
- {
- //Increase the score by the value
- score += value;
- //Generate a particle for the value
- switch (value)
- {
- case 1:
- //Generate particle 1
- break;
- case 2:
- //Generate particle 2
- break;
- //etc.
- }
- }
Add Comment
Please, Sign In to add comment