Skip to content

Instantly share code, notes, and snippets.

@adamki
Forked from stevekinney/gist:353182d7cd10fb4a5b27
Last active February 26, 2016 17:07
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 adamki/f37cb48ece26793f5f6e to your computer and use it in GitHub Desktop.
Save adamki/f37cb48ece26793f5f6e 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?

Hands down, the best approach that speaks to me is the tick() function. OUr game time project has a index.js file that is gradually growing larger and larger. I like the idea of having a Game obj and placing a tick function to control drawing and requestAnimationFrame.

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

@rrgayhart
Copy link

🎫 -et!

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