mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed debug view and ragdoll start positioning
This commit is contained in:
parent
b6d979fe7c
commit
16826b174a
12 changed files with 135 additions and 73 deletions
|
|
@ -1,16 +1,14 @@
|
|||
define([
|
||||
"Game/Client/View/Pixi/Layer",
|
||||
"Lib/Vendor/Pixi",
|
||||
"Game/Config/Settings",
|
||||
|
||||
],
|
||||
|
||||
function (Parent, PIXI, Settings) {
|
||||
function (Parent, PIXI) {
|
||||
|
||||
"use strict";
|
||||
|
||||
function Debug() {
|
||||
Parent.call(this, "debug", 0);
|
||||
Parent.call(this, "debug", 0.00000001);
|
||||
|
||||
|
||||
this.graphics = new PIXI.Graphics();
|
||||
|
|
@ -20,14 +18,11 @@ function (Parent, PIXI, Settings) {
|
|||
Debug.prototype = Object.create(Parent.prototype);
|
||||
|
||||
Debug.prototype.render = function(centerPosition, zoom) {
|
||||
|
||||
Parent.prototype.render.call(this, centerPosition, zoom);
|
||||
|
||||
|
||||
|
||||
this.container.x -= 300 * zoom;
|
||||
this.container.y -= 200 * zoom;
|
||||
}
|
||||
};
|
||||
|
||||
return new Debug();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue