Create a gist now

Instantly share code, notes, and snippets.

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