Skip to content

Instantly share code, notes, and snippets.

@patwey
Forked from stevekinney/gist:353182d7cd10fb4a5b27
Last active February 26, 2016 17:11
Show Gist options
  • Save patwey/d9dd9b1d8906fce78747 to your computer and use it in GitHub Desktop.
Save patwey/d9dd9b1d8906fce78747 to your computer and use it in GitHub Desktop.

From: Mary Rose Cook Live Codes Space Invaders

What is one approach you can take from this Mary's code and implement in your project?

Torie and I liked her use of a "Keyboarder," and have since abstracted the event listeners for keyups and keydowns into a Keyboarder object in our project.

We also continued this method of organization throughout our code whenever possible. Asking questions like "should our Slime handle the creation of keyup event listeners?" helped us to delegate responsibilites more effectively.

@rrgayhart
Copy link

🔑 🐻 d

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