@@ -0,0 +1,1322 @@
+import org.lwjgl.opengl.GL11;%0A%0Apublic class Star extends Rectangle %7B%0A%0A  private double _size;%0A%09private double _svel;%0A%09private boolean _show;%0A%09private int _color;%0A%0A%09public Star(double displayx, double displayy, double s) %7B%0A%09%09super(Math.random() * (displayx - s + 1), Math.random()%0A%09%09%09%09* (displayy - s + 1), s, s);%0A%09%09_show = false;%0A%09%09_size = s;%0A%09%09_svel = 0;%0A%09%7D%0A%0A%09public void draw() %7B%0A%09%09if (_show) %7B%0A%09%09%09GL11.glColor3d(1, 1, 1);%0A%09%09%09GL11.glBegin(GL11.GL_QUADS);%0A%09%09%09GL11.glVertex2d(getXcor(), getYcor());%0A%09%09%09GL11.glVertex2d(getXcor() + _size, getYcor());%0A%09%09%09GL11.glVertex2d(getXcor() + _size, getYcor() + _size);%0A%09%09%09GL11.glVertex2d(getXcor(), getYcor() + _size);%0A%09%09%09GL11.glEnd();%0A%09%09%7D%0A%09%7D%0A%0A%09public double setSize(double s) %7B%0A%09%09double temp = _size;%0A%09%09_size = s;%0A%09%09return _size;%0A%09%7D%0A%0A%09public void update(int delta) %7B%0A%09%09super.update(delta);%0A%09%09double dist = Math.sqrt(Math.abs(540 - getXcor()) * Math.abs(540 - getXcor())%0A%09%09%09%09+ Math.abs(360 - getYcor()) * Math.abs(360 - getYcor()));%0A%09%09%0A%09%09setXvel((getXcor() - 540) / 1);%0A%09%09setYvel((getYcor() - 360) / 1);%0A%09%09%0A%09%09_size += _svel;%0A%09%09_svel = dist * dist / 700000;%0A%0A%09%09if (getXcor() %3C= 0 %7C%7C getYcor() %3C= 0 %7C%7C getXcor() %3E= 1080%0A%09%09%09%09%7C%7C getYcor() %3E= 720) %7B%0A%09%09%09setXcor(Math.random() * 1080);%0A%09%09%09setYcor(Math.random() * 720);%0A%09%09%09setXvel(0);%0A%09%09%09setYvel(0);%0A%09%09%09_size = 1;%0A%09%09%09_show = true;%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Create Star.java