Custom Game Engines: A Small Study
gist.github.com
gist.github.com
For clarity, I mean here a basic engine (for example, a custom engine for a 2D game), not a photorealistic and generic 3D game engine like Unity (that definitely is very difficult and probably not worth reinventing the wheel without a good reason).