1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
var app = app || {}; class TankShell extends BaseGameObject { constructor(id, sprite, size, position, direction) { super(id, sprite, size, position); this.direction = direction; this.isDestroyed = false; } set x (value) { this.container.x = value; } set y (value) { this.container.y = value; } update() {} }