fixed debug view and ragdoll start positioning

This commit is contained in:
Jeena 2015-03-16 01:50:41 +01:00
parent b6d979fe7c
commit 16826b174a
12 changed files with 135 additions and 73 deletions

View file

@ -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();
});