A game and custom-built game engine designed for creating simple, top-down strategy games.
Go to file
S David 091ebd7afe
Some checks failed
buildbot/elemental-game-macos-builder Build done.
buildbot/elemental-game-freebsd-builder Build done.
buildbot/elemental-game-linux-builder Build done.
[WIP] Add TOML Serialization support for aarbitrary game data.
- Now partly using the new TOML serialization feature from IOCore
- Remove JsonConfigFile class and move it to IOCore
2024-08-05 00:46:29 -04:00
.vim [vimtegration] update the local.vimrc script so it uses build/Debug as the output folder 2024-08-02 12:49:17 -04:00
.vscode Add some support for VSCode w/ CMake extension 2024-03-07 10:11:22 -05:00
Apps [WIP] Add TOML Serialization support for aarbitrary game data. 2024-08-05 00:46:29 -04:00
CMake@242668f6bf [CMakeTools|IOCore] Update to latest version that doesn't call git submodule update on every configure call 2024-08-04 16:00:33 -04:00
Docs Fix segmentation fault with QJsonModel 2024-04-29 22:27:09 -04:00
Modules [WIP] Add TOML Serialization support for aarbitrary game data. 2024-08-05 00:46:29 -04:00
Tests [WIP] Add TOML Serialization support for aarbitrary game data. 2024-08-05 00:46:29 -04:00
Util Restructure project directories 2024-04-17 00:17:53 -04:00
.clang-format WIP: Move boilerplate application code to external lib. 2024-04-13 16:17:00 -04:00
.clang-tidy Add ExceptionDialog class for error handling. 2024-05-06 22:10:16 -04:00
.clangd WIP: Move boilerplate application code to external lib. 2024-04-13 16:17:00 -04:00
.gitattributes Add .gitattributes for more accurate code statistics on gittea 2023-12-12 23:25:53 -05:00
.gitignore [vimtegration] update the local.vimrc script so it uses build/Debug as the output folder 2024-08-02 12:49:17 -04:00
.gitmodules [3rdparty] Update IOCore dependency version 2024-07-29 14:43:28 -04:00
CMakeLists.txt Update IOCore for toml support; cleanup CMakeLists.txt 2024-06-10 22:10:48 -04:00
Doxyfile [WIP] Add TOML Serialization support for aarbitrary game data. 2024-08-05 00:46:29 -04:00
LICENSE Fork project from template project. 2023-12-12 21:50:38 -05:00
README.md ResourceEditor can now list directories and open text files. 2024-04-28 18:23:42 -04:00

Elemental Game and Custom-built Game Engine

A game and custom-built game engine designed for creating simple, top-down strategy games. This README provides an overview of the project, its design principles, goals, and instructions for building and testing.

CI/CD Build Status

Arch Linux FreeBSD 14.0 macOS Windows
Build Status Build Status Build Status TBD

Getting Started

Build Tools

  • CMake (version 3.21 or higher)
  • C++17-compatible compiler

Project Structure

  • src/: Contains the engine logic, defines a libray target
  • apps/: Contains the game source, as well as source for resource editors, all consumers of the engine target
  • test/: Contains unit tests

Library Dependencies

  • Catch2 v3: Test framework for C++ (can be fetched using FetchContent).
  • FakeIt: Mocking framework for C++ (fetched using FetchContent).
  • SDL2: A cross-platform development library providing low-level access to audio, keyboard, mouse, and display functions.
  • SDL2_Image: An extension library for SDL2, offering support for loading various image file formats.
  • SDL2_Gfx: A graphics primitive extension library for SDL2, providing additional functionality for efficient graphics rendering.

Building the Project

  1. Clone the repository:

    git clone <URL>
    
  2. Navigate to the project directory:

    cd  elemental-game
    
  3. Configure your build system:

    cmake -B debug -G Unix Makefiles
    # or
    cmake -B debug -G Ninja   # this is faster and more modern
    
  4. Invoke your build system

    cmake --build debug
    

Running Unit Tests

  1. After building the project, you can run the unit tests:

    cmake --build --target ctest
    

This will execute the Catch2 test suite.

Contributing

I am not against recieving contributions and help, but I retain the right to determine the general direction of this project. That being said, feel free to fork this project and use it as a base for your own - just make sure to comply with the Mozilla Public License. (See here)

Official rules for contribution might be outlined in a CONTRIBUTING.md at some point in the future, as needed.

License

This project is licensed under the MPL 2.0 License.

Catch2, which is used for unit-testing is © Catch2 authors, and is licensed under the Boost Software License v1.0 FakeIt, is also used for unit-testing and is © Eran Pe'er and is licensed under the MIT License