Skip to content

Instantly share code, notes, and snippets.

@latenitecali
Created October 9, 2014 05:29
Show Gist options
  • Save latenitecali/9b3ac6511490ec511b8a to your computer and use it in GitHub Desktop.
Save latenitecali/9b3ac6511490ec511b8a to your computer and use it in GitHub Desktop.
starFieldLuxe2
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