About 8 months ago, I was bored, so I coded a simple 3D game engine in MS-DOS in C. It took quite a lot of work.
The game engine uses VGA Mode-X with a 320x240 pixel resolution. The player immediately starts at the origin point of the map: (0, 0, 0), and can move with the WASD keys and look around with the mouse. There's no physics here, so the player can phase through walls and fly.
There are placeholder images at the bottom of the screen showing the player's HP and Ammo, though I haven't implemented this feature in yet. There's also some debug text at the top showing the frames per second and other miscellaneous info, which can easily be changed in the source code.
Oh yeah, the code is heavily unoptimized,
and I'm a bad programmer. The triangle-rendering code is especially unoptimized; you can see the FPS drops to the 8-16 range when I get close to the map.
There's still lots of things that I need to add to this project, though I doubt I will ever finish it because I'm really slow at working on shit. Some of my main goals for updating this engine are:
- Sound
- Physics
- Enemies, items, NPCs, etc.
- Saved Games (I feel I could do this easily)
And here's one final screenshot of Princess Peach to go along with this C3's theme:
Let me know what you think of this game engine!
UPDATE:
My project is now on GitHub!