Skip to content

Commit 5612336

Browse files
committed
Containers flag
1 parent 1802f8b commit 5612336

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/gameobjects/container/ContainerFactory.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
var Container = require('./Container');
99
var GameObjectFactory = require('../GameObjectFactory');
1010

11+
var hasWarned = false;
12+
1113
/**
1214
* Creates a new Container Game Object and adds it to the Scene.
1315
*
@@ -24,5 +26,11 @@ var GameObjectFactory = require('../GameObjectFactory');
2426
*/
2527
GameObjectFactory.register('container', function (x, y, children)
2628
{
29+
if (!hasWarned)
30+
{
31+
console.warn('Containers are experimental and should not be used in production');
32+
hasWarned = true;
33+
}
34+
2735
return this.displayList.add(new Container(this.scene, x, y, children));
2836
});

src/input/InputManager.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ var InputManager = new Class({
410410

411411
if (gameObject.parentContainer)
412412
{
413-
gameObject.getWorldTransformMatrix(matrix, camera);
413+
gameObject.getWorldTransformMatrix(matrix);
414414

415415
TransformXY(px, py, matrix.tx, matrix.ty, matrix.rotation, matrix.scaleX, matrix.scaleY, point);
416416
}
@@ -428,6 +428,7 @@ var InputManager = new Class({
428428
return output;
429429
},
430430

431+
/*
431432
debugHitTest: function (x, y, gameObject, camera, output)
432433
{
433434
if (output === undefined) { output = this._tempHitTest; }
@@ -448,7 +449,7 @@ var InputManager = new Class({
448449
449450
gameObject.getWorldTransformMatrix(matrix);
450451
451-
matrix.invert();
452+
// matrix.invert();
452453
matrix.transformPoint(px, py, point);
453454
454455
// var tt = new TransformMatrix();
@@ -465,6 +466,7 @@ var InputManager = new Class({
465466
466467
return [ matrix, point, this.pointWithinHitArea(gameObject, point.x, point.y) ];
467468
},
469+
*/
468470

469471
/**
470472
* x/y MUST be translated before being passed to this function,

0 commit comments

Comments
 (0)