Skip to content

Instantly share code, notes, and snippets.

View dastinnette's full-sized avatar

David Stinnette dastinnette

View GitHub Profile

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?

  • She creates an array of invaders instead of creating each individually. I have 3 classes of fish but can create arrays of these 3 classes instead of creating each fish (20+) individually.

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

@dastinnette
dastinnette / require.markdown
Last active April 2, 2016 20:16 — forked from rrgayhart/require.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
  • A module is an object in Node that maps one file directly to another. One node must require another and the required node must export specific information to be exposed in other files.