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; } }