Skip to content

PhiGei2000/CityBuilderGame

Repository files navigation

Image

City Builder Game

Overview

A simple city-building game using C++ and OpenGL.

Features

  • GUI
  • Street placement
  • procedural terrain generation and terrain editing
  • Traffic
  • Buildings
  • Savegames
  • ...

Getting started

Check the requirements

Requirements:

  • CMake 3.22.1 and above
  • C++ 20
  • OpenGL 4.5

Packages (only on Linux):

Clone and build

1. Clone the repository

git clone --recursive https://github.com/PhiGei2000/CityBuildingGame.git

the --recursive option is only needed on windows to download the libraries from github.

2. Change your current directory to the downloaded project

cd ./CityBuilderGame

3. Run CMake to build the project

cmake --build ./build

After that keep sure you link or copy the res directory to the build directory

cp -r ./res ./build/

or to create a symbolic link

cd ./build && ln -s ../res res

3. Run build script (Linux)

bash ./build.sh

4. Start the game

./cityBuilderGame

Controls

Button(s) Description
WASD Move
QE Rotate camera left/right
RF Rotate camera up/down
ESC Main menu
B Enter/Leave build mode
F1 Open debug panel
F3 Enter debug mode
F4 Show shadow buffer

Issues and questions

Feel free to report issues and questions to the issues section.

Demonstration videos

Check out my YouTube playlist for demonstration of some features in the game.

License

This code is licensed under the GNU GLP license

Releases

No releases published

Packages

No packages published

Languages