Mech Defense
PRIVATEA Tower Defense experiment turned Bullet Heaven that was cut short.
2026-09-28
Introduction
This was my first 3D game made with Cute Framework, and I had a lot of fun with it. I particularly liked the dithering, the lights, and the explosions!
Tech
- Cute Framework
- Box3D
- while 2D physics is pretty straight-forward to implement, I find implementing proper 3D physics harder than 2D and much more time-consuming
- C99
- the game itself is written in C99
- I used macros mostly for initializing components with default values and
optionally overriding them with
__VA_ARGS__
- Fake ECS
- basically a bit set for the components + entity kinds + collision categories and masks
- very very messy I know, regrets have been had in abundance… I should have used separate bit sets, or, even better, simple booleans on the components themselves
- NO SCENE GRAPH
- in my very first game engine I had written a damn scene graph because everyone was doing it and I stupidly thought I should do that as well
Some other neat things were custom model parsing for maps, stuff like this is a door entity, these are the scene lights, etc. This was done by reading the model’s custom properties for the most part.
CF provides a pretty damn good API in general, but even the 3D API is so nice to use and flexible. For example, all the explosions and the lights in the game were made with basic shapes like lines, circles, spheres, etc. I LOVED the lights and the explosions, I know they don’t look that impressive but they look fun to me, plus the lights even have smoke above them which is made of simple shapes as well :P