Getting started
1. Start from the template
First, you will need to clone the template:
git clone https://github.com/QuentinJanuel/fruit-pie-mod-template my-mod
cd my-mod
npm install
2. Run it
To use it in dev mode, simply run
npm run dev
This builds dist/index.js in watch mode and serves it on http://localhost:8080.
3. Load it into Fruit Pie
On Fruit Pie's developer mod page, add a dev mod pointing at http://localhost:8080/index.js.
Then go on any game page. You should see your mod in the mod list, check it and start the game.
note
While the mod is launched on watch mode, you will still need to quit and reopen a game to see the changes as mods need to do operations at build time.