https://github.com/barimehdi77/42-cub3d
Cub3D (42cursus) 2019-2020. This project is inspired by the world famous game, cociderate like the first FPS never developed. First look of the ray-casting. The aim is to do a dynamic view in a maze.
https://github.com/barimehdi77/42-cub3d
c coins crosshair cub3d floor ft-cub3d graphics-programming minimap raycasting sky sprite texture wall
Last synced: about 2 months ago
JSON representation
Cub3D (42cursus) 2019-2020. This project is inspired by the world famous game, cociderate like the first FPS never developed. First look of the ray-casting. The aim is to do a dynamic view in a maze.
- Host: GitHub
- URL: https://github.com/barimehdi77/42-cub3d
- Owner: barimehdi77
- Created: 2020-04-29T17:06:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-19T03:21:04.000Z (about 4 years ago)
- Last Synced: 2025-03-18T00:47:38.397Z (7 months ago)
- Topics: c, coins, crosshair, cub3d, floor, ft-cub3d, graphics-programming, minimap, raycasting, sky, sprite, texture, wall
- Language: C
- Homepage:
- Size: 44.2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 🎮 ft_cub3d
The Graphic project of 1337 curses# 🌎 The Global Goal
The goal of cub3d is to make something using raycasting (like [Wolfenstein 3D](https://fr.wikipedia.org/wiki/Wolfenstein_3D)).# 🕹 The MiniGoals
- WASD to move, QE or Left/Right directional keys to rotate camera
- I to toggle Interface, O to toggle crosshair, L to toggle shadows
- ESC to quit
- Textures for each sides (North, South, West, East) and Sky/Floor
- Crosshair
- 3 different sprites
- Minimap
- Collectable items# Till Now
`NOTE: The project is Finished Now, So this is The last Version (maybe?)`.
>**What's New?**
>> - The Mandatory Part is Done Just need to be normed.
>> - The Bonus Part is Done Just need to be normed.
>> - HUD:
>>> - The MiniMap is done.
>>> - Heart to show you how many life you have.
>>> - Counting score.
>> - Sprite:
>>> - Now You can add More Then one sprite.
>>> - add coins and bomb to collect.
>> - Fix Some Bugs.
> The project is Finished Now, So this is The last Version (maybe?) (^-^).
# ✅ What is finished?
- The Things that just finished
1. [x] The walls are draw
2. [x] Your Player can Move forward and backward and Rotate to right and left Now.
3. [x] Minimap.
4. [x] Textuer, every side of the wall have it's texture.
5. [x] Draw the sky and the floor color.
6. [x] Add texture for The N,E,W, and S of the wall.
7. [x] the Game now can read the Map from a .cub file look at ``./maps`` folder.
8. [x] Player can move to left and right.
9. [x] fix some bugs in the map reading.
10. [x] add --save flag get a screen shot to the map.
11. [x] All The bugs in Map files has been fixed.
12. [x] Fix some Bugs.
13. [x] Edit The Files.
14. [x] The texture for the sky and the floor.
15. [x] More items in the Maze.
16. [x] Sounds and Music.
17. [x] Coins and Bombs To Collect.
- Working on:
1. [ ] Nothing For Now.
# 📸 ScreenShot From The Game:
# 💀 The project Deadline
**For Mandatory Part:**
- started: `28/04/2020`.
- The deadline: ` 01/11/2020`.**For The Bonus part:**
- started: `AFTER FINESH The Mandatory part (14/11/2020)`.
- The Deadline: `30/11/2020`.
# 👨💻 Ressources
- [Playable Wolfenstein 3D](http://users.atw.hu/wolf3d/)
- [Raycasting in JS](http://www.playfuljs.com/a-first-person-engine-in-265-lines/)
- [Some X11 event numbers](https://github.com/qst0/ft_libgfx)
- [Full tutorial in English](https://lodev.org/cgtutor/raycasting.html)
- [Images in minilibx](https://github.com/keuhdall/images_example)
- [BMP format on StackOverflow](https://stackoverflow.com/questions/2654480/writing-bmp-image-in-pure-c-c-without-other-libraries)
- [BMP format explanation](https://web.archive.org/web/20080912171714/http://www.fortunecity.com/skyscraper/windows/364/bmpffrmt.html)---
[](https://www.buymeacoffee.com/barimehdi77)
[](https://ko-fi.com/K3K45UOA7)
[](https://paypal.me/barimehdi77)