Nevin
Menu
Back to Project Log
[Complete]

LuaGame

Lua bindings for a provided Win32 C++ engine, with Breakout and Snake written entirely in Lua.

Project Overview

LuaGame is a provided Win32 engine in C++ that runs a game written in Lua, used as-is. A game is a single Lua file, loaded by name from the command line (default game_breakout.lua).

Key Features

  • Lua bindings: LuaManager exposes the engine's classes and structs, the RGB helper and the key constants through Sol2.

  • Callback dispatch: Engine callbacks map onto Lua functions of the same name, so a script defines only what it uses.

  • API annotations: engine_annotations.lua documents the API for editor tooling.

  • Two games: Breakout and Snake, both written against the bound classes.

SYS_SPECS

Language:
C++, Lua
Technology:
CMake
Platforms:
Windows