Skip to content

Instantly share code, notes, and snippets.

@emilyfreeman
Forked from stevekinney/gist:353182d7cd10fb4a5b27
Last active February 9, 2016 20:45
Show Gist options
  • Save emilyfreeman/ff8d79916f8ea225931f to your computer and use it in GitHub Desktop.
Save emilyfreeman/ff8d79916f8ea225931f 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?

  • Mimic her tick() function to get the gates to pass at a set interval
  • Using .prototype to set aspects of an element
  • Creating an isDown method to see if the user is pressing the left or right arrow buttons
  • Use her collision method to see when the ball is hitting a gate

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

@rrgayhart
Copy link

👍

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