This is the alternative 'Maze project' for the 'Research & Project approval (Part 1)' project in the ALX Software Engineering program.
The goal of this project is to create a game in 3D using raycasting !
-
Walls !
In this first part, you’ll have to:
- Create a window with SDL2
- Use raycasting to draw walls on your window !
- You don’t need to be able to rotate the camera during the execution in this part, but you must provide a way to change the angle of the camera in your code to see if it works after recompiling it
- The color of the walls must be different from the color of the ground/ceil
- The map doesn’t need to be parsed from a file, but you must provide a way to modify it in your code to see if it works after recompiling it. (e.g. using an array of arrays of integers or characters)
-
Orientation
In this part, you must draw a different color depending on the orientation of the walls.
- You must at least draw walls facing
NORTH and SOUTH
in a different color from walls facingEAST and WEST
- You must at least draw walls facing
-
Rotation
You must provide a way to rotate the camera during the execution.
- For example, you can rotate the camera when the
left,right
arrows are pressed on the keyboard - Or you can rotate the camera when the mouse moves, just like a FPS game !
- For example, you can rotate the camera when the
-
Move
You must provide a way to move the camera during the execution.
- For example, you can move the camera when the
w,a,s,d
keys are pressed on the keyboard
- For example, you can move the camera when the
-
Ouch !
In this part, you must handle the collisions of the player (yes, let’s call the camera
player
now, it’s getting serious) with the walls.- The player must not be able to enter walls
- You can make the player slide on the walls instead of just stop it
-
Parser
In this part you must implement a parser to get the map from a file.
- You are free to define the standards of your map (The character for a wall, the character for nothing, the extension of the file if you want, …)
- Your program will need a parameter to run which will be the path to the map file
-
Draw the map
In this part, you must draw the map on the window.
- You’re free to draw the map where you want, with the color you want, …
- You must provide a way to enable/disable it during the execution
- Include the player’s line of sight in the map
-
Coding style + Documentation
- Check if your code fits the Holberton School coding style
- Check if your code is well documented and respect the Holberton School documentation format
You can check all of this by yourself, just follow the instructions on this repository.
Be careful
The check will be done on each file present on your turn in repository. Even the files that was not required. So don’t forget to always keep your turn in directory clean.
-
Textures
In this part you have to add textures on your walls !
-
Multi task !
Add a way to move on several directions and rotate in the same time. Basically in this part you’ll have to handle multiple events on the same frame.
For example, if the keys to move are
w,a,s,d
:- If the keys
w
ands
are pressed in the same time, the player shouldn’t move, - If the keys
w
andd
are pressed in the same time, the player should move forward and right in the same time, - …
- If the keys
-
Ground textures
In this part you have to add textures on the ground and/or on the ceiling !
-
Weapons
Add weapons textures !
-
Enemies
Add some enemies !
-
Make it rain
Add rain and a possibility to stop / start the rain with a key.
-
Extra option
Shadows, special lightning, etc… get creative!