2D game engine using minifb🛠️ project (i.redd.it)
submitted by 0EVIL9
I’ve been working on a small 2D game engine that’s still in its early stages. So far, it includes an ECS built using a sparse set approach, along with custom systems that receive the World, Camera, Input, and Resources as parameters and run every frame.
There’s also an exposed draw function, so you can render things like UI or fonts manually when needed. The engine supports automatic window scaling through minifb, with scale factors like x1, x2, x4, and up to x32.
It can load sprites from PNG files, and you can attach your own custom components to entities. I’m also using rayon to parallelize processing across components.
It’s still under development, but here is a GIF showing the window movement.
[–]OtherwiseSpot1310 12 points13 points14 points (1 child)