https://github.com/gusg21/geargame
a small 2D game engine in C99 with built-in editor and Lua scripting
https://github.com/gusg21/geargame
c99 game-engine lua
Last synced: 4 months ago
JSON representation
a small 2D game engine in C99 with built-in editor and Lua scripting
- Host: GitHub
- URL: https://github.com/gusg21/geargame
- Owner: gusg21
- Created: 2024-02-02T15:03:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T23:54:35.000Z (over 2 years ago)
- Last Synced: 2025-01-20T20:41:07.779Z (over 1 year ago)
- Topics: c99, game-engine, lua
- Language: C++
- Homepage:
- Size: 9.63 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gear Game Engine

This is a hacky little game engine I've been putting together in my free time using C99, Lua, and Raylib as well as a few support libraries for JSON as well as IMGUI support.
The code is (currently) poorly documented although it should be fairly structural and consistent. My primary goals with this project are asset management, editor development, scripting interfacing, and practicing memory management in C.
## TODOS
- ~~Cleanup!~~
- ~~So many `malloc()`s and nowhere near enough `free()`s~~
- SDL2 migration/support
- Ideally you could switch out the backend; most of the rendering code is generic.
- Documentation pass
- Especially focusing on making sure functions are labeled and knotty bits of string manip and Lua stack operations are clear + readable.
- Asset saving to disk from the gg_assets_t structure in the editor
- Better scripting API for Lua
- maybe including some built-in lua code that wraps the somewhat ugly C-style calls?