Luny
Back

Dodge the Creeps 2D

A recreation of the classic Godot Tutorial game but with custom implemented UIs and collisions, based on SDL3 and pure C.

Published on
Updated on

1.485

c
cmake
sdl

Description

This project serves as a convenient way for me to get into low level programming with C, as a challenge to recreate a simple 2D engine under SDL3.

Installation

Requirements:

You can choose to whether install these libraries by vendoring in and configuring CMake to include the local libraries, or have them as system libraries and let CMake find them from your system (I’m using Homebrew with system libraries).

Then, run the CMake file into a build folder, then Make for your corresponding system. The binary should be configured correctly in the build folder. All commands must be run on the project root directory, since asset paths are ./assets/....

Documentation

I tried to comment as many functions as there are in header files. But here’s the rundown of how this application does:

Caution

This is my first project using the C language (other projects use a subset of C++, so it doesn’t count). There will be glaring flaws and bad memory handling.

Demo