Website Summary Files Commits Branches @commit @diff @stats
path: root / scripts / gameObjects / tankShell.js
blob: 1fffa23a6a015e2160d47d030cdf3e78748274cc (plain) (blame)
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() {}
}