scale rendering

This commit is contained in:
Asraelite 2016-03-22 15:41:11 +00:00
parent 80bd84230d
commit 0ceea5f4af
7 changed files with 70 additions and 17 deletions

View file

@ -7,6 +7,19 @@ function Ship(id) {
this.move = [];
this.lastMove = [];
this.bodyType = 'ship';
this.com = {
x: 16,
y: 17.6
};
var s = SCALE;
this.getPos = function() {
return {
x: this.x * s,
y: this.y * s
}
}
this.updateMove = function() {
if (JSON.stringify(this.move) != JSON.stringify(this.lastMove) || true) {