Created
October 9, 2014 05:29
-
-
Save latenitecali/9b3ac6511490ec511b8a to your computer and use it in GitHub Desktop.
starFieldLuxe2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override function ready() { | |
for(i in 0...numberOfStars) { | |
starSprite = new Sprite({ | |
name : 'star'+i, | |
size : new Vector(16, 16), | |
rotation_z : 45.0, | |
color : new Color().rgb(0xffffff), | |
pos : new Vector(Std.random(Std.int(Luxe.screen.w)), Std.random(Std.int(Luxe.screen.h))) | |
}); //starSprite | |
starSprite.add(new StarComponent()); | |
} | |
} //ready |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment