mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 06:00:41 +00:00
Added Body.parent and Body.name properties.
This commit is contained in:
parent
b3ba728fe9
commit
e688c8758f
3 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
var CHECKSUM = {
|
var CHECKSUM = {
|
||||||
build: 'e3e6e2b0-5ad6-11e7-b604-99296cb8a42f'
|
build: '4e29a680-5b3b-11e7-beb8-2fd7d9854f0e'
|
||||||
};
|
};
|
||||||
module.exports = CHECKSUM;
|
module.exports = CHECKSUM;
|
|
@ -26,6 +26,9 @@ var Body = new Class({
|
||||||
|
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
|
|
||||||
|
this.parent;
|
||||||
|
this.name = '';
|
||||||
|
|
||||||
this.size = { x: sx, y: sy };
|
this.size = { x: sx, y: sy };
|
||||||
this.pos = { x: x, y: y };
|
this.pos = { x: x, y: y };
|
||||||
this.last = { x: x, y: y };
|
this.last = { x: x, y: y };
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// In ACTIVE vs. LITE or FIXED vs. ANY collisions, only the "weak" entity moves,
|
// In ACTIVE vs. LITE or FIXED vs. ANY collisions, only the "weak" entity moves,
|
||||||
// while the other one stays fixed. In ACTIVE vs. ACTIVE and ACTIVE vs. PASSIVE
|
// while the other one stays fixed. In ACTIVE vs. ACTIVE and ACTIVE vs. PASSIVE
|
||||||
// collisions, both entities are moved. LITE or PASSIVE entities don't collide
|
// collisions, both entities are moved. LITE or PASSIVE entities don't collide
|
||||||
// with other LITE or PASSIVE entities at all. The behaiviour for FIXED vs.
|
// with other LITE or PASSIVE entities at all. The behavior for FIXED vs.
|
||||||
// FIXED collisions is undefined.
|
// FIXED collisions is undefined.
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
Loading…
Reference in a new issue