mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
8 lines
684 B
Markdown
8 lines
684 B
Markdown
## Debug features
|
|
|
|
Flame provides some features for debugging, these features are enabled when the method `debugMode` from the `BaseGame` class is overridden, and returning `true`. When it's enabled all `PositionComponent`s will be wrapped into a rectangle, and have its position rendered on the screen, so you can visually verify the component boundaries and position.
|
|
|
|
In addition to the debugMode, you can also ask BaseGame to record the fps, that is enabled by overriding the `recordFps` method to return `true`, by doing so, you can access the current fps by using the method `fps`.
|
|
|
|
To see a working example of the debugging features, [check this example](/doc/examples/debug).
|