Skip to content
This repository was archived by the owner on Jul 17, 2026. It is now read-only.

Hemanth3303/Hart

Repository files navigation

Hart

A (mostly 2d) game engine built in C++ and OpenGL 4.6

Important Note

  • I'm archiving this repo. Has too many bugs and issues.
  • Please do not use this as a reference for code structure, C++, OpenGL or engine architecture.
  • If you want a proper reference, use Cherno's Hazel2D instead, linked below.
  • GG

Info

I made this engine as a learning exercise. As such I won't be accepting any pull requests.
(That is if someone somehow finds this repository lol)

Build System

CMake

Dependencies

Build Instructions

First clone the repo recursively.

Note: This engine builds GLFW from source at vendor/glfw. For required development libraries and tools depending on your OS, see GLFW’s compile guide and install what CMake reports as missing.

Windows example

Specify a generator manually like so:

$ cmake -S. -Bbuild -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug
$ cmake --build build
$ .\build\windows_x86-64\Debug\Sandbox.exe

Or use a predefined preset.
For example, to use gcc and makefiles for a debug build on windows x86-64:

$ cmake --preset=windows_x86-64_debug_mingw-w64_makefiles
$ cmake --build build
$ .\build\windows_x86-64\Debug\Sandbox.exe

Linux example

Specify a generator manually like so:

$ cmake -S. -Bbuild -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug
$ cmake --build build
$ ./build/linux_x86-64/Debug/Sandbox

Or use a predefined preset.
For example, to use gcc and makefiles for a debug build on linux x86-64:

$ cmake --preset=linux_x86-64_debug_gcc_makefiles
$ cmake --build build
$ ./build/linux_x86-64/Debug/Sandbox

Note: Use cmake --list-presets to see all available presets

Credits for Assets used in Sandbox

Note

Heavily inspired by the TheCherno's Sparky Engine series and Hazel Game Engine series

The font rendering was implemented based on tutorial and code in this article.

Releases

Used by

Contributors

Languages