Skip to content

Bigmancozmo-Software/BMC-Engine

Repository files navigation

BMC Engine

A game engine, built from the ground up in C/C++ by Bigmancozmo.

License Badge
GitHub Issues - Open GitHub Issues - Closed
GitHub Pull Requests - Open GitHub Pull Requests - Closed

Compiling

This is only confirmed to work on Windows for now. We are working on testing other systems. It should work on Linux, but no guarantees!

1. Install CMake

Head here to get CMake. Any version newer than 3.8 should work.

2. Install Visual Studio

Installing Visual Studio is required for compiling -- you do not have to code in it.
Go here and install Visual Studio 2022 (Visual Studio 2019 should work, but it is untested).
When in the Visual Studio Installer, you must enable Desktop development with C++.
Click "Modify" in the bottom-right and wait for the changes to be made and/or Visual Studio to be installed.

3. Download Repository

You cannot use Code -> Download ZIP!
In your Command Prompt/Terminal, enter the directory you want to download the code to, and run
git clone https://github.com/bigmancozmo-software/bmc-engine --recurse-submodules.

4a. Compile with the Terminal

Open a new Command Prompt/terminal window in the source code directory.
Then, run the following command:
cmake -S . -B build && cmake --build build --config RelWithDebInfo --target BMC-ENGINE
This should generate a folder called build. Go to build/BMC-ENGINE/Release (build/BMC-ENGINE on linux). BMC Engine is compiled!
If you're getting errors on Linux, try running
sudo apt-get install --fix-missing -y libgl1-mesa-dev libwayland-dev wayland-protocols libxkbcommon-dev libxrandr-dev libxinerama-dev libx11-dev libxcursor-dev libxi-dev pkg-config
You may also need to run copy-resources.sh.

4b. Compile with Visual Studio

Open up Visual Studio and select Open a local folder. Then, select the source code folder. If done correctly, Visual Studio should recognize it as a CMake project, and allow you to write code and build the engine from there.