CityMayor is a city-building simulation game built in Processing for the Video Games module at the University of St Andrews.
The aim of the game is to build a large and beautiful city, full of people and generating a good income. If the population does not have jobs, shops or entertainment, they will begin to leave. A lack of housing will restrict population growth.
The game is not well balanced, so once income is steady it becomes very difficult to stop it from continuing to grow. As the main point is to enjoy the calm city-building process however, this is not too much of a problem.
The game is both keyboard- and mouse-driven and the controls are explained in game screen.
- Done: deselect the currently selected action.
- Building: place a building, chosen from a dropdown menu.
- Road: place a road.
- Forest: plant a forest.
- Demolish: demolish a road or forest.
- Show/Hide HUD: show or hide the heads-up-display.
- Undo: undo previous actions.
- Redo: redo previously undone actions.
- Pause: pause the current simulation.
- Save: save the game to
$HOME/Desktop
. - Load: load a game from
$HOME/Desktop
.
Placing buildings, roads and forests costs money, as does demolishing them. A cost label appears above the mouse with the amount that it would cost to perform the current action, as well as a preview of the item being placed.
Copyright 2017 Billy Brown.
This project (CityMayor) is licensed under the Mozilla Public License version 2.0. See LICENSE file.