Skip to content

Instantly share code, notes, and snippets.

@mbburch
Forked from stevekinney/gist:353182d7cd10fb4a5b27
Last active December 9, 2015 05:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbburch/7a4c8d640748e513deb2 to your computer and use it in GitHub Desktop.
Save mbburch/7a4c8d640748e513deb2 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?

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

That was super cool to watch! I thought her explanation of tick and updating was really clear. I also thought it was interesting that the bodies array held three different object types. I think I have a few takeaways I'd like to hang on to. As far as our game, the Keyboarder was most interesting to me, in the way that she set true or false based on keyup/down and keyCode. The hash object (not JS terminology, but you know what I mean) of keys and keyCodes seemed relevant to what we're doing. The collision detection will be useful for us with notes and the target we are creating, as well as connecting that to a loadSound function that depends on specific events.

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