Skip to content

Instantly share code, notes, and snippets.

@Limeliz
Last active December 18, 2016 04:57
Show Gist options
  • Save Limeliz/400b1f5026ebb7c52835666d647cc4de to your computer and use it in GitHub Desktop.
Save Limeliz/400b1f5026ebb7c52835666d647cc4de to your computer and use it in GitHub Desktop.
// The shape of the big saucer in Asteroids
beginShape(LINES);
// Saucer centered around body
vertex(-3, -12);
vertex(3, -12);
vertex(3, -12);
vertex(7, -6);
vertex(7, -6);
vertex(13, 0);
vertex(13, 0);
vertex(7, 6);
vertex(7, 6);
vertex(-9, 6);
vertex(-9, 6);
vertex(-14, 0);
vertex(-14, 0);
vertex(-7, -6);
vertex(-7, -6);
vertex(-3, -12);
vertex(-7, -6);
vertex(7, -6);
vertex(-14, 0);
vertex(13, 0);
/*
// Saucer centered
vertex(-3, -9);
vertex(3, -9);
vertex(3, -9);
vertex(7, -3);
vertex(7, -3);
vertex(13, 3);
vertex(13, 3);
vertex(7, 9);
vertex(7, 9);
vertex(-9, 9);
vertex(-9, 9);
vertex(-14, 3);
vertex(-14, 3);
vertex(-7, -3);
vertex(-7, -3);
vertex(-3, -9);
vertex(-7, -3);
vertex(7, -3);
vertex(-14, 3);
vertex(13, 3);
*/
endShape();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment