mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
33 lines
No EOL
625 B
JavaScript
33 lines
No EOL
625 B
JavaScript
define([
|
|
"Game/Client/View/Pixi/Layer",
|
|
"Lib/Vendor/Pixi",
|
|
"Game/Config/Settings",
|
|
|
|
],
|
|
|
|
function (Parent, PIXI, Settings) {
|
|
|
|
"use strict";
|
|
|
|
function Debug() {
|
|
Parent.call(this, "Debug", 0);
|
|
|
|
|
|
this.graphics = new PIXI.Graphics();
|
|
this.container.addChild(this.graphics);
|
|
}
|
|
|
|
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();
|
|
}); |