Sitelet https://github.com/flame-engine/flame/tree/main/packages/flame_devtools
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

flame

A Flutter-based game engine.


flame_devtools

A DevTools extension for Flame games. To use it you just have to run your Flame game in debug mode and open the DevTools in your browser, and it should ask you if you want to add the Flame DevTools extension as a separate tab.

Development

To run it locally, make sure to run melos devtools-build to build the extension so that it can be loaded in the browser (the build files are not committed to the repository).

After you have done any changes, make sure to run melos devtools-build to build and copy the changes to packages/flame/extension/devtools.

To develop things from the Flame side, create a new DevToolsConnector which registers the new extension end points so that you can communicate with Flame from the devtools extension. Don't forget to add the new connector to the list of connectors in the DevToolsService class.

The service extensions can also be called by other tools than this extension. For example, the snapshot command in flame_cli uses the GameSnapshotConnector and ComponentSnapshotConnector to render a running game to a PNG image, so keep the responses of the existing extensions backwards compatible.

If you want to run with the devtools extension with the simulated mode for faster development, you can use melos devtools-simulator to start the simulated environment and run the devtools extension in the browser. Remember that you have to manually enter the Dart VM Service Connection URI in the simulated devtools environment.