mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
Ce projet est inspiré du jeu éponyme mondialement connu, considéré comme le premier FPS jamais développé. Il vous permettra d'explorer la technique du ray-casting. Votre objectif est de faire une vue dynamique au sein d'un labyrinthe, dans lequel vous devrez trouver votre chemin.
Actually I'm not that sure it's the sprite overlap but it happened when the sprites overlapped too close to the player, but basically the program tried to render pixels out of bounds from the images, tex_x or tex_y were able to go < 0. I forcefully set them to 0 if it was the case, and I didn't see really much of visual glitches or something. Anyways I'll stop rambling in this commit, just to say I stopped a real weird crash because when I tried using valgrind or sanitizers, the program would behave well and not crash. Might be tied to how fast the program renders frames ? |
||
|---|---|---|
| libft | ||
| mlx | ||
| ressources | ||
| src | ||
| .clangd | ||
| .gitignore | ||
| Makefile | ||
| README | ||
| test_badmaps.sh | ||
-----------------------------------[ cub3d ]-----------------------------------
--[ Probleme possible avec la MLX sur un pc perso
attention /usr/bin/cc doit rediriger vers /usr/bin/clang
--[ liste des symboles
1 - mur
0 - espace vide
D - porte tel que defini dans le sujet
d - porte a points (cod)
Z - zombie
z - spawner zombie (porte a six coups pour les zombies)
s - source de son
M - boite magique
faire un systeme de "cheats" soit par un menu de debug soit par une ligne de
commande intégrée dans le jeu
--[ Correspondances des angles / points cardinaux
PI [ nord ]
5 PI / 4 [NO] | 3 PI / 4 [NE]
|
3 PI / 2 [ouest] ----------- PI / 2 [est]
|
7 PI / 4 [SO] | PI / 4 [SE]
0 [ sud ]
--[ Credits
-[ Code
- kcolin
- tchampio
-[ Graphics
- kcolin
- B. (perks, power switch)
- tchampio