ttr-cyber-2023-bpa-v03 / clockwork-eclipse-engine

game
0 stars 0 forks source link

steampunk-game

An over-engineered RTS victorian-steampunk game written in C++ and SDL2.

Building

This project uses CMake to build. It is intended to be built using Linux, but it can also be built using other platforms. To use the build script, ensure that you have CMake, Ninja, and SDL2 installed. Then, run the following commands:

./build.sh

This will generate a Ninja setup using CMake, and then build the project. The executable will be located in the build directory, along with any other build files. This script will also automatically copy the assets to the build directory.

In other platforms, or independent of the build script, the project can be built using CMake and your preferred build system. Here's an example of how to build the project using CMake and Make:

mkdir build
cd build
cmake ..
make

If you are using Windows, you can use Visual Studio to build the project. To do so, install Visual Studio and CMake, and then run the following commands:

mkdir build
cd build
cmake ..

This will generate a Visual Studio solution file, which can be opened in Visual Studio. From there, you can select your platform and build the project.

TODO: Auto copy assets on Windows w/ VS.

Running

To run the project, simply run the executable in the build directory. The executable will be named steampunk-game. The executable can be run from any directory, as long as the assets directory is in the same directory as the executable.

Engine

The primary focus of this project is the engine, which is designed to be a robust, flexible, and adaptable framework for creating games in C++. The engine is designed with the following goals in mind: