function GameObject(x, y, r, game) {
  this.x = x;
  this.y = y;
  this.r = r;
  this.game = game;
}
/**
 * It's a basic game object.
 * Game objects like player, asteroids and bullets should inherit from this object.
 *
 * @param {Number} x initial X position
 * @param {Number} y initial Y position
 * @param {Number} r The radius of the object
 * @param {Game} game Reference to the game object.
 * @returns {GameObject}
 */
It's a basic game object.
Game objects like player, asteroids and bullets should inherit from this object.

@param {Number} x initial X position
@param {Number} y initial Y position
@param {Number} r The radius of the object
@param {Game} game Reference to the game object.
It ' s a basic game object . Game objects like player asteroids and bullets should inherit from this object . @param { Number } x initial X position @param { Number } y initial Y position @param { Number } r The radius of the object @param { Game } game Reference to the game object .
function GameObject(x, y, r, game) {
  this.x = x;
  this.y = y;
  this.r = r;
  this.game = game;
}
function GameObject ( x , y , r , game ) { this . x = x ; this . y = y ; this . r = r ; this . game = game ; }
It's a basic game object.
It ' s a basic game object .