Closed jehon closed 6 years ago
The easiest way is to just copy *.tank.js
file to /tanks
folder and update of /tanks/index.json
file. It is not described in docs but I will add it
This doesn't seem to work. My new tank doesn't show up in the list if I refresh the page. And it doesn't even show up if I rebuild. Has something change? Should I open a bug for this?
For anyone else who is interested in this, you need to add the tank file to packages/jsbattle-engine/src/tanks
, update the index.json
file there to include your tank's name, and then run npm run build && npm run start
from the root of the project. Lastly, you'll need to clear your browser cache.
I didn't see it in the documentation, so I don't know if it is a doc missing or a feature request...
Is it possible to inject my own tank from either another location (local folder or a github repository)?
How could I share my tank to run somewhere else (at friends) ?