Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danjwinter/465343498676bfb7510f5f5db12336a7 to your computer and use it in GitHub Desktop.
Save danjwinter/465343498676bfb7510f5f5db12336a7 to your computer and use it in GitHub Desktop.

Step One: Watch Mary Rose Cook Live Codes Space Invaders from Front-Trends. (The second worst conference name ever?)

Step Two: Fork this gist.

Step Three: Respond to this question in your fork: What is one approach you can take from this Mary's code and implement in your project? - I really liked the way that she used a keyboard mapping to make it clear exactly what button she was targetting and which was pressed. Using number mappings is rather ambiguous and future me will never remember what they were supposed to be. I also really liked her colission method in that she tackled how the bodies would NOT be colliding and inferred the opposite would mean they are colliding.

Step Four: Totally Optional: take a look at some of the other forks and comment if the spirit moves you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment