mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Tidying up all of the map files, sorting out Tiled paths and updated the tilemap examples for 1.1.4.
This commit is contained in:
@@ -456,8 +456,6 @@ Phaser.Utils.Debug.prototype = {
|
||||
|
||||
this.splitline('x: ' + sprite.body.x.toFixed(2), 'y: ' + sprite.body.y.toFixed(2), 'width: ' + sprite.width, 'height: ' + sprite.height);
|
||||
this.splitline('speed: ' + sprite.body.speed.toFixed(2), 'angle: ' + sprite.body.angle.toFixed(2), 'friction: ' + sprite.body.friction);
|
||||
//this.splitline('old x: ' + sprite.body.preX.toFixed(2), 'y: ' + sprite.body.preY.toFixed(2));
|
||||
// this.splitline('drag x: ' + sprite.body.drag.x, 'y: ' + sprite.body.drag.y);
|
||||
this.splitline('gravity x: ' + sprite.body.gravity.x, 'y: ' + sprite.body.gravity.y);
|
||||
this.splitline('world gravity x: ' + this.game.physics.gravity.x, 'y: ' + this.game.physics.gravity.y);
|
||||
this.splitline('acceleration x: ' + sprite.body.acceleration.x.toFixed(2), 'y: ' + sprite.body.acceleration.y.toFixed(2));
|
||||
|
||||
@@ -197,43 +197,6 @@ Phaser.Utils = {
|
||||
|
||||
};
|
||||
|
||||
// Global functions that PIXI needs
|
||||
|
||||
(function() {
|
||||
var consoleDisabled = false;
|
||||
if (consoleDisabled) {
|
||||
window.console = undefined;
|
||||
}
|
||||
if (window.console === undefined) {
|
||||
window.console = {
|
||||
debug: function() {
|
||||
return true;
|
||||
},
|
||||
info: function() {
|
||||
return false;
|
||||
},
|
||||
warn: function() {
|
||||
return false;
|
||||
},
|
||||
log: function() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
debug = (function(args) {
|
||||
window.console.debug(args);
|
||||
});
|
||||
info = (function(args) {
|
||||
window.console.info(args);
|
||||
});
|
||||
warn = (function(args) {
|
||||
window.console.warn(args);
|
||||
});
|
||||
log = (function(args) {
|
||||
window.console.log(args);
|
||||
});
|
||||
})();
|
||||
|
||||
/**
|
||||
* Converts a hex color number to an [R, G, B] array
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user