mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-26 12:41:40 +00:00
remove debug stuff
This commit is contained in:
parent
b8df31324b
commit
947aee6937
2 changed files with 9 additions and 17 deletions
|
|
@ -15,27 +15,27 @@ class ProfilerUI {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
instance = this;
|
instance = this;
|
||||||
debugProfiler = new h3d.impl.Benchmark(s2d);
|
// debugProfiler = new h3d.impl.Benchmark(s2d);
|
||||||
debugProfiler.y = 40;
|
// debugProfiler.y = 40;
|
||||||
|
|
||||||
fpsCounter = new Text(DefaultFont.get(), s2d);
|
// fpsCounter = new Text(DefaultFont.get(), s2d);
|
||||||
fpsCounter.y = 80;
|
// fpsCounter.y = 80;
|
||||||
fpsCounter.color = new Vector(1, 1, 1, 1);
|
// fpsCounter.color = new Vector(1, 1, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function begin() {
|
public static function begin() {
|
||||||
instance.debugProfiler.begin();
|
// instance.debugProfiler.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function measure(name:String) {
|
public static function measure(name:String) {
|
||||||
instance.debugProfiler.measure(name);
|
// instance.debugProfiler.measure(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function end() {
|
public static function end() {
|
||||||
instance.debugProfiler.end();
|
// instance.debugProfiler.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function update(fps:Float) {
|
public static function update(fps:Float) {
|
||||||
instance.fpsCounter.text = "FPS: " + fps;
|
// instance.fpsCounter.text = "FPS: " + fps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,6 @@ class CameraInput {
|
||||||
|
|
||||||
var collider:GuiGraphics;
|
var collider:GuiGraphics;
|
||||||
|
|
||||||
var txt:Text;
|
|
||||||
|
|
||||||
public function new() {
|
public function new() {
|
||||||
var width = MarbleGame.canvas.scene2d.width;
|
var width = MarbleGame.canvas.scene2d.width;
|
||||||
var height = MarbleGame.canvas.scene2d.height;
|
var height = MarbleGame.canvas.scene2d.height;
|
||||||
|
|
@ -40,9 +38,6 @@ class CameraInput {
|
||||||
var pressed = false;
|
var pressed = false;
|
||||||
|
|
||||||
var prevMouse = new Vector(0, 0);
|
var prevMouse = new Vector(0, 0);
|
||||||
|
|
||||||
txt = new Text(DefaultFont.get());
|
|
||||||
|
|
||||||
interactive.onPush = (e) -> {
|
interactive.onPush = (e) -> {
|
||||||
e.propagate = true;
|
e.propagate = true;
|
||||||
|
|
||||||
|
|
@ -72,8 +67,6 @@ class CameraInput {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (pressed) {
|
if (pressed) {
|
||||||
txt.text = 'Camera Touch: ${e.relX} ${e.relY}';
|
|
||||||
|
|
||||||
var curPos = new Vector(e.relX, e.relY);
|
var curPos = new Vector(e.relX, e.relY);
|
||||||
var delta = curPos.sub(prevMouse);
|
var delta = curPos.sub(prevMouse);
|
||||||
var scaleFactor = 1.0;
|
var scaleFactor = 1.0;
|
||||||
|
|
@ -148,7 +141,6 @@ class CameraInput {
|
||||||
|
|
||||||
public function add(parentGui:GuiControl) {
|
public function add(parentGui:GuiControl) {
|
||||||
parentGui.addChild(this.collider);
|
parentGui.addChild(this.collider);
|
||||||
MarbleGame.canvas.scene2d.addChild(txt);
|
|
||||||
added = true;
|
added = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue