The most important files and folders in the project are:
classes
The source code responsible for isometric tile city drawing.effects.js
All effects that players can buy are implemented here. The effect is a modifier that can increase or descrease game parameters. For example, a driver (that earns money) is the effect.game.js
The main game logic is implemented here. One can consider it as a bridge between the UI and the game logic. It is also responsible for handling user input.game-events
Events happening during the game are implemented here. For example, a player can get a bonus or a penalty.
NB! Requires Node.js
Opening index.html
in a browser is not enough due to CORS policy. A simple HTTP server is required to run the project.
For example, http-server:
- Install http-server
- Go to the project root directory
- Run
http-server
command without any arguments
NB! Requires Go
- Run
go run httpserv.go
in the root folder - Go to http://localhost:8080/