-
Notifications
You must be signed in to change notification settings - Fork 6
Debugging
Haxe provides developers with a powerful trace system. You can simply call trace everywhere within your own functions:
trace("Hello world !");
In FlashDevelop on a flash target, you can read the messages in the output-window and in Javascript it will be written in the browsers console. Each trace is displayed with Filename and Line number informations where the trace occured :
Test.hx:11: Hello world !
Debug messages only appear in a debug build. More info: http://haxe.org/doc/cross/trace
For debug purposes it could be very useful to use debug conditional compilation tags.
To check if your game still runs in 60 fps, you can use the FpsDisplay
, which displays the current framerate. You need a font to display it.
var font:Font = new Font(pack, "myFont");
var fpsMeterEntity = new Entity().add(new TextSprite(font)).add(new FpsDisplay());
System.root.addChild(fpsMeterEntity);
Documentation guide for Flambe - Targeted to version 4.0+
Flambe | Installation | Demo projects | Showcase | API Reference | Forum
Flambe is MIT licensed and available for free. Feel free to contribute!
- Home / Installation
- Entity / Components
- Core
- Assets
- Publish your game
- Other
- Editors
- Plugins, tools, extensions
- Help
- More Flambe