@@ -0,0 +1,1157 @@
+package starpunk;%0A%0Aimport com.artemis.Entity;%0Aimport com.artemis.World;%0Aimport com.badlogic.gdx.math.MathUtils;%0Aimport starpunk.components.Position;%0Aimport starpunk.components.Sprite;%0A%0Apublic final class EntityFactory%0A%7B%0A  private EntityFactory()%0A  %7B%0A  %7D%0A%0A  /**%0A   * Create a star entity within a particular bound.%0A   */%0A  public static Entity createStar( final World world, final int width, final int height )%0A  %7B%0A    final Entity e = world.createEntity();%0A%0A    final Position position = new Position();%0A    position.setX( MathUtils.random( -width / 2, width / 2 ) );%0A    position.setY( MathUtils.random( -height / 2, height / 2 ) );%0A    e.addComponent( position );%0A%0A    final Sprite sprite = new Sprite();%0A    sprite.setName( %22star%22 );%0A    final float scale = MathUtils.random( 0.5f, 1f );%0A    sprite.setScaleY( scale );%0A    sprite.setScaleX( scale );%0A    sprite.setR( MathUtils.random( 0.3f, 0.9f ) );%0A    sprite.setG( MathUtils.random( 0.3f, 0.9f ) );%0A    sprite.setB( MathUtils.random( 0.3f, 0.9f ) );%0A    sprite.setA( MathUtils.random( 0.1f, 0.5f ) );%0A    sprite.setLayer( Sprite.Layer.BACKGROUND );%0A%0A    e.addComponent( sprite );%0A%0A    return e;%0A  %7D%0A%7D%0A

Add a factory method for stars!