mirror of
https://github.com/wassname/phaser.git
synced 2026-09-10 12:29:30 +08:00
Tidying up source code for release. Also refactored World to use a Group instance, rather tha duplicate functions.
This commit is contained in:
+4
-12
@@ -207,10 +207,8 @@ Object.defineProperty(Phaser.Camera.prototype, "x", {
|
||||
|
||||
set: function (value) {
|
||||
this.view.x = value;
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(Phaser.Camera.prototype, "y", {
|
||||
@@ -221,10 +219,8 @@ Object.defineProperty(Phaser.Camera.prototype, "y", {
|
||||
|
||||
set: function (value) {
|
||||
this.view.y = value;
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(Phaser.Camera.prototype, "width", {
|
||||
@@ -235,10 +231,8 @@ Object.defineProperty(Phaser.Camera.prototype, "width", {
|
||||
|
||||
set: function (value) {
|
||||
this.view.width = value;
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Object.defineProperty(Phaser.Camera.prototype, "height", {
|
||||
@@ -249,8 +243,6 @@ Object.defineProperty(Phaser.Camera.prototype, "height", {
|
||||
|
||||
set: function (value) {
|
||||
this.view.height = value;
|
||||
},
|
||||
}
|
||||
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user