Skip to content

Instantly share code, notes, and snippets.

@snggeng
Last active June 6, 2017 01:19
Show Gist options
  • Save snggeng/71d85d6de89f6cd9d4e83f011f06e15c to your computer and use it in GitHub Desktop.
Save snggeng/71d85d6de89f6cd9d4e83f011f06e15c to your computer and use it in GitHub Desktop.
Creating Game Objects
// World settings
var assets = []; // All game objects
var player = new Player(settings); // The player
assets.push(player); // Add the player as a game asset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment