Skip to content

Instantly share code, notes, and snippets.

@nickrobson
Created August 8, 2016 00:32
Show Gist options
  • Save nickrobson/7a8bb12fdfc6476bd80cf70212d25335 to your computer and use it in GitHub Desktop.
Save nickrobson/7a8bb12fdfc6476bd80cf70212d25335 to your computer and use it in GitHub Desktop.
package ass1;
public class MyCoolGameObject extends GameObject {
public MyCoolGameObject() {
super(GameObject.ROOT);
new PolygonalGameObject(this, new double[] {0, 0, 0, .5, .5, .5, .5, 0}, new double[] {1, 0, 0, .5}, null);
new LineGameObject(this, 0, 0, 1, 0, new double[] {0, 1, 0, .5});
new LineGameObject(this, 0, 0, 0, 1, new double[] {0, 1, 0, .5});
new CircularGameObject(this, .05, new double[] {0, 0, 1, .5}, null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment