mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 05:01:38 +00:00
bruh remove fps counter
This commit is contained in:
parent
b21d97bee4
commit
2b6b3b0bc8
2 changed files with 5 additions and 6 deletions
BIN
marblegame.hl
BIN
marblegame.hl
Binary file not shown.
11
src/Main.hx
11
src/Main.hx
|
|
@ -16,8 +16,7 @@ import fs.ManifestBuilder;
|
||||||
class Main extends hxd.App {
|
class Main extends hxd.App {
|
||||||
var marbleGame:MarbleGame;
|
var marbleGame:MarbleGame;
|
||||||
|
|
||||||
var fpsCounter:Text;
|
// var fpsCounter:Text;
|
||||||
|
|
||||||
var loaded:Bool = false;
|
var loaded:Bool = false;
|
||||||
|
|
||||||
override function init() {
|
override function init() {
|
||||||
|
|
@ -41,9 +40,9 @@ class Main extends hxd.App {
|
||||||
// world.init();
|
// world.init();
|
||||||
// world.start();
|
// world.start();
|
||||||
|
|
||||||
fpsCounter = new Text(DefaultFont.get(), s2d);
|
// fpsCounter = new Text(DefaultFont.get(), s2d);
|
||||||
fpsCounter.y = 40;
|
// fpsCounter.y = 40;
|
||||||
fpsCounter.color = new Vector(1, 1, 1, 1);
|
// fpsCounter.color = new Vector(1, 1, 1, 1);
|
||||||
|
|
||||||
loaded = true;
|
loaded = true;
|
||||||
});
|
});
|
||||||
|
|
@ -54,7 +53,7 @@ class Main extends hxd.App {
|
||||||
if (loaded) {
|
if (loaded) {
|
||||||
marbleGame.update(dt);
|
marbleGame.update(dt);
|
||||||
// world.update(dt);
|
// world.update(dt);
|
||||||
fpsCounter.text = 'FPS: ${this.engine.fps}';
|
// fpsCounter.text = 'FPS: ${this.engine.fps}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue