Files
Lukas Klingsbo c92910c688 feat: Initial functionality of flame_devtools (#3061)
![image](https://github.com/flame-engine/flame/assets/744771/4ca93f5f-369e-4644-b7fb-1d7790b962e2)

This adds a structure and some basic functionality for the Flame
devtools extension.

Later I will add a pre/post-hook for publishing to Melos so that it can
build the devtools extension before publishing (and remove the directory
afterwards), since it isn't committed to this repository. For now one
has to run `melos devtools-build` before publishing.

---------

Co-authored-by: Renan <6718144+renancaraujo@users.noreply.github.com>
Co-authored-by: Erick <erickzanardoo@gmail.com>
2024-03-05 01:04:43 +01:00

863 B

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/build.

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.