Skip to content

Commit

Permalink
fix permutation test
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Jun 30, 2020
1 parent c56f34a commit 8c55be7
Show file tree
Hide file tree
Showing 3 changed files with 247 additions and 163 deletions.
52 changes: 44 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions src/gameObject.js
Expand Up @@ -361,7 +361,7 @@ class GameObject {
return;
}

// ifdef GAMEOBJECT_GROUP
// @ifdef GAMEOBJECT_GROUP
get sx() {
return this._sx;
}
Expand Down Expand Up @@ -477,7 +477,7 @@ class GameObject {
child.y = absolute ? child.y : this.y + child.y;

// @ifdef GAMEOBJECT_ROTATION
if (child.rotation) {
if ('rotation' in child) {
child.rotation = absolute ? child.rotation : this.rotation + child.rotation;
}
// @endif
Expand All @@ -487,6 +487,13 @@ class GameObject {
child.setScale(this.scale.x, this.scale.y);
}
// @endif

// @ifdef GAMEOBJECT_CAMERA
if ('sx' in child) {
child.sx = absolute ? child.sx : this.sx + child.sx;
child.sy = absolute ? child.sy : this.sy + child.sy;
}
// @endif
}

/**
Expand Down

0 comments on commit 8c55be7

Please sign in to comment.