Phaser-driven interface for DigitalTwinCity.
- Git installed.
- Node 18+ installed.
- Clone the repository
npm installnpm run dev
Remember to update game.config.json accordingly.
npm run build- Build goes to
/distdirectory
This assumes you have VS Code and Chrome installed
- Hit F5 to debug
- This will launch Vite and Chrome
- You can now add breakpoints in VS Code
- Hit Shift+F5 twice to stop debugging
A modern up-to-date web browser
- Microsoft Edge 89 or newer
- WebView2 installed (Windows 11 has this preinstalled)
- Safari 15 or newer
- WebKitGTK installed
The app is unsigned when built, so you need to follow these steps when distributing:
- First you need to extract the .app from the .dmg before attempting to run the game.
- Second, try running the game, a popup will say the app is unverified.
- Right click/Open the context menu on the .app, hold option, click open.
- Click open in the popup.
The game will start normally from now on.
You may have to mark the games as executable before it will let you run them.
There have been reports of the game freezing, so the web version might be preferred in that case.
- Clone Exhibition and Interface repositories into the same folder
- Add a new raster image (5120x3849) to Exhibition/Rasters/<Folder>
- Go to /Scripts and run
python rasters_to_thumbnails.py- This action may take a few minutes on first use
- These thumbnail images populate the layer page list in advanced mode
- Go to /Scripts and run
python rasters_to_minimaps.py- This action may take a few minutes on first use
- Run
python transfer_minimaps.py- Type "Y" to proceed
- Run
python transfer_thumbnails.py- Type "Y" to proceed
- Go to /digitaltwincityinterface and rebuild application