HGE 2D Game Engine
A hardware accelerated 2D game engine designed for rapid game development. HGE provides a clean API for graphics, audio, input, and resource management, letting you focus on building your game instead of fighting with low-level details.
Fast Rendering
Hardware accelerated sprite rendering with alpha blending, rotation, and scaling at high frame rates.
Integrated Audio
Music streaming, sound effects, and audio manipulation built in and ready to use.
Simple API
Clean, intuitive interface that gets out of your way and lets you build games quickly.
Quick Start
Get your first HGE project running
Three Steps to Your First Window
- Download HGE — Get the SDK from the downloads page
- Set up your project — Configure include paths and link libraries (see IDE setup guide)
- Write your game — Start with the basic template below
#include <hge.h>
HGE *hge = 0;
bool FrameFunc()
{
if (hge->Input_GetKeyState(HGEK_ESCAPE)) return true;
// Your game logic here
return false;
}
bool RenderFunc()
{
hge->Gfx_BeginScene();
hge->Gfx_Clear(0);
// Your rendering here
hge->Gfx_EndScene();
return false;
}
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
hge = hgeCreate(HGE_VERSION);
hge->System_SetState(HGE_FRAMEFUNC, FrameFunc);
hge->System_SetState(HGE_RENDERFUNC, RenderFunc);
hge->System_SetState(HGE_WINDOWED, true);
hge->System_SetState(HGE_SCREENWIDTH, 800);
hge->System_SetState(HGE_SCREENHEIGHT, 600);
hge->System_SetState(HGE_TITLE, "My HGE Game");
if (hge->System_Initiate()) {
hge->System_Start();
}
hge->System_Shutdown();
hge->Release();
return 0;
}
Explore the Documentation
Everything you need to build with HGE
Overview
Engine architecture, features, and capabilities explained.
Documentation
Complete API reference and tutorials.
Downloads
SDK packages and development tools.
Demos
Sample projects showing engine capabilities.
License
Usage terms and licensing information.
Community
Forum discussions and support.