Coder Social home page Coder Social logo

gusg21 / geargame Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 9.86 MB

a small 2D game engine in C99 with built-in editor and Lua scripting

CMake 0.44% C 33.98% Lua 24.93% Makefile 0.60% C++ 38.36% Batchfile 0.10% Shell 0.02% Objective-C 0.17% Objective-C++ 1.09% GLSL 0.01% Kotlin 0.01% HTML 0.17% GDB 0.01% Meson 0.01% Zig 0.09% Python 0.01%
c99 game-engine lua

geargame's Introduction

Gear Game Engine

Demo Screenshot

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?

geargame's People

Contributors

gusg21 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.