scale rendering
This commit is contained in:
parent
80bd84230d
commit
0ceea5f4af
7 changed files with 70 additions and 17 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue