A simple city-building game using C++ and OpenGL.
- GUI
- Street placement
- procedural terrain generation and terrain editing
- Traffic
- Buildings
- Savegames
- ...
Requirements:
- CMake 3.22.1 and above
- C++ 20
- OpenGL 4.5
Packages (only on Linux):
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
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 |
Feel free to report issues and questions to the issues section.
Check out my YouTube playlist for demonstration of some features in the game.
This code is licensed under the GNU GLP license