Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created February 1, 2014 17:01
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 zeroeth/8755201 to your computer and use it in GitHub Desktop.
Save zeroeth/8755201 to your computer and use it in GitHub Desktop.
simple jump game
var player1 = {name: "yoda", power: "jedi", age: 900};
var player2 = {name: "luke"}
var players = [player1, player2];
var jump = function(player) {
console.log(player.name + " jumps!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment