public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
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;
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.