mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
8 lines
587 B
Markdown
8 lines
587 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 enabled all `PositionComponent`s will have be wrapped into a rectangle, and have its position rendered on the screen, so you can visually verify the component boundaries and position.
|
|
|
|
BaseGame will also start record the fps when in debug mode, you can access the current fps by using the method `fps`.
|
|
|
|
To see an working example of the debugging features, [check this example](/docs/examples/debug).
|