|
|
|
|
|
by shermanyo
3551 days ago
|
|
A basic game engine! I was exposed to so many concepts over time, building on a code base I understood from the ground up.
It was the first time my code (c++ no less!) felt completely deterministic, that I understood every piece of data down to the byte level, heap/stack/gpu locality at any point of execution, and especially the lifecycle and memory management. If anyone is interested in creating an indie/hobby game engine, I'd recommend the following: - game loop with independent render FPS and a constant simulation tick delta (otherwise it runs non-deterministic due to floating point)
- "entities, components, systems" architecture (ECS)
- data-driven content (load level and game object data from JSON or similar, and programmatically build your scene)
- basic event or messaging system Honestly, I can't think of a field that covers as wide a range of CS topics at the depth I've seen in lower level game development. If you focus on understanding and implementing the popular patterns and algorithms recommended by the indie community, its not the most daunting of projects. There's so much great information, and a few good books that break down and walk through a working implementation you can build on once you understand it from the ground up. |
|