2023-10-26 11:23:45 +02:00
|
|
|
# Cub3D
|
|
|
|
Cub3D is a simple raycasting game using the mlx library
|
2023-10-25 13:56:45 +02:00
|
|
|
|
|
|
|
---
|
2023-10-26 11:23:45 +02:00
|
|
|
## Todo
|
|
|
|
### Parsing
|
|
|
|
- Parse the .cub file for the floor and ceiling colors
|
|
|
|
- Parse the .cub file for the 4 textures
|
|
|
|
- Parse the .cub file for the map
|
|
|
|
- Flood fill the map and test if it is closed
|
|
|
|
- Check if all needed elements are present in the closed part of the map
|
|
|
|
### Raycasting
|
|
|
|
- Render the walls correctly
|
|
|
|
- Render the walls correctly with movement
|
|
|
|
- Render the walls correctly with rotation
|
|
|
|
### Bonus
|
|
|
|
- Doors
|
|
|
|
- Wall Collision
|
|
|
|
- Minimap
|
|
|
|
- Animated Sprites
|
|
|
|
- Rotate with the mouse
|
|
|
|
### Extra
|
2023-10-26 16:57:23 +02:00
|
|
|
- FPS counter
|
2023-10-26 11:23:45 +02:00
|
|
|
- A Menu?
|
|
|
|
- Levels?
|
|
|
|
- Skybox?
|
|
|
|
- Enemies?
|
|
|
|
- Weapon Sprite that fires?
|
|
|
|
- Barrels?
|
|
|
|
- Jumping?
|
|
|
|
- Vertical Aiming?
|
2023-10-25 13:56:45 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
## Bugs
|
|
|
|
|
|
|
|
---
|
|
|
|
## Usage
|
|
|
|
1. Simply clone or download the repository
|
|
|
|
2. Run `make` in the cloned directory
|
2023-10-26 11:23:45 +02:00
|
|
|
3. Start the game with `./cub3d`
|
2023-10-25 13:56:45 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
[This project is part of the studies at 42](https://42.fr/en/homepage/)
|