Skip to content

Instantly share code, notes, and snippets.

@martinwells
Created June 21, 2012 19:44
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 martinwells/2968058 to your computer and use it in GitHub Desktop.
Save martinwells/2968058 to your computer and use it in GitHub Desktop.
Bullet = gamecore.Base(‘Bullet’,
{
// Statics
},
{
// Instance
x: 0,
y: 0,
// the init method serves as a constructor
init: function(x, y)
{
this._super(); // call the parent constructor
this.x = x;
this.y = y;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment