Dungeons and Pixels 3D
About
This is my submission for the GMTK Game Jam with the theme Roll of the Dice.
The game requires you to physically roll dice and type the results to play.
Gameplay:
The gameplay is basically a dumbed down version of D&D. The combat is turn-based, and navigation is first person.
If you attack the enemy first with your sword, you get to go first. If not, the enemy goes first.
First you roll a D20 for if the attack hits. If the value is bigger then the opposing sides' armor value, it hits.
Then you roll a second dice to determine damage.
Rinse and Repeat until someone dies. If you win you get a bit of health back, and continue. If you lose its game over.
Controls:
W: Move forward
S: Move Backward
A: Turn Left
D: Turn Right
Space: Swing sword while not in combat
0-9: Type number for dice roll
Enter: Confirm Dice Roll
Behind the Scenes:
This project was written in C from scratch without any existing game engine.
As much is done from scratch as possible, outside of audio, for which I used the library miniaudio. Outside of that I only used glfw to draw the window and opengl to draw individual pixels to the screen.
This is a raycast engine, similar to wolfenstein 3D, this is just a very simple way of rendering 3d graphics.
I used a tutorial by the YT channel 3D Sage as reference for the technical implementation of a raycaster.