doubleaxe / daxfb-calculator

Calculator/Factory Planner for factory management games. Evospace. Captain of Industry.
https://doubleaxe.github.io/daxfb-calculator/
MIT License
3 stars 4 forks source link
game

daxfb-calculator

Calculator/Factory Planner for factory management games.

This project was initially developed as calculator/factory planner for Evospace game. Later it turned out this project is quite universal and could be used for other factory management games.

Builds for currently supported games

Common startup page for all games

https://doubleaxe.github.io/daxfb-calculator/

Direct links for specific games

Game Calculator link
Sample https://doubleaxe.github.io/daxfb-calculator/?gameId=sample
Evospace https://doubleaxe.github.io/daxfb-calculator/?gameId=evospace
Captain of Industry https://doubleaxe.github.io/daxfb-calculator/?gameId=coi

How to use

Help is available as separate page https://doubleaxe.github.io/daxfb-calculator/docs/. Help sources are located inside docs folder in this repository.

Building

If type/validation errors arise, project can be built without type checking

Debugging

Offline usage

Released packages can be downloaded from 'release' page or self-built. Then it is possible to just open index.html included in release archive locally in browser. It is impossible now to just open file in modern browsers, "thanks" to new CORS policy for file:// protocol. Http server (or old browser) is now required to run locally, all built files can be just placed on http server directory. The only remote dependency is https://polyfill.io/ which is used to make it work inside unsupported browsers. Query string ?gameId=<game> may be added to quickly open desired game, for example daxfb-calculator/dist/index.html?gameId=evospace.

If project was built from repository, it can be run locally after building with npm run preview.

TODO list