Commit graph

40 commits

Author SHA1 Message Date
Theo Champion
5da3583077 dev: added new makefile rule for compiling with sanitizers 2025-09-14 17:43:46 +02:00
Theo Champion
b0ac26a7f6 wip: Adding weapon class and usage 2025-09-11 23:41:00 +02:00
Theo Champion
7852962d56 feat: finished barricades 2025-09-09 14:09:20 +02:00
Theo Champion
a0f20b396c norme: fixed norme issues 2025-09-08 17:34:35 +02:00
Theo Champion
f80eb125f5 feat: Added the round counter on the hud 2025-09-03 18:39:30 +02:00
8445f240a2
feat: basic zombie movement (very bad) 2025-08-18 13:42:47 +02:00
Theo Champion
00e8a73d14 dev: improved sprites by creating a create_sprite function 2025-08-12 15:57:27 +02:00
Theo Champion
f1697a6c73 dev: Improved memory management of sprites 2025-08-12 14:49:11 +02:00
98e0119c91
fix: prevent moving through walls in extreme lag situations 2025-08-12 12:16:57 +02:00
Theo Champion
4564db6f2f feat: Added fps counter 2025-08-11 10:50:59 +02:00
Theo Champion
9a113374a6 norm: normed code (except sprites) 2025-08-06 14:47:29 +02:00
Theo Champion
258372bf09 feat: Added sprites 2025-08-06 14:06:52 +02:00
a18c115ef1
fix: prevent crash due to out-of-bounds when game lags 2025-08-06 11:49:48 +02:00
Theo Champion
2bc214103b feat: Added delta time variable 2025-07-31 14:12:53 +02:00
Theo Champion
05e24d19f9 cleanup: moved initialization code from main() to a separate file 2025-07-31 13:41:16 +02:00
Theo Champion
7b0d05532c cleanup(raycast): renamed render.c to walls.c to not confuse it with the actual renderer 2025-07-31 13:40:38 +02:00
Theo Champion
6fe6eb0a9a norm: removed unused code 2025-07-31 11:30:21 +02:00
Theo Champion
5281fe6abd feat: made 3d... for the cub3d 2025-07-30 16:25:41 +02:00
Theo Champion
faf5127829 feat(player): redid all the movement code more details in desc
- had to tamper at init with the map pointer to allow player to move
- tweaked movement speed
- allowed for multiple keys to be pressed at the same time
- added collisions
- had to modify minimap code because it segfaulted due to old code
2025-07-29 15:01:31 +02:00
8fd70cb18a feat: utility func to get cardinal direction from angle 2025-07-28 15:26:28 +02:00
Theo Champion
38feba022f fix: added angle.c to the compilation chain 2025-07-25 15:06:06 +02:00
Theo Champion
300f5c2e19 chore: added libmath to compilation command 2025-07-25 15:06:06 +02:00
Theo Champion
b564311851 fix(Makefile): fixed rule to make the MinilibX compile 2025-07-21 13:47:43 +02:00
4a2ad1fa58
build: overhaul Makefile 2025-07-17 16:20:53 +02:00
7000634228
style: remove maputils header from central includes folder 2025-07-17 14:56:50 +02:00
8ec3f2e11c
style: remove cub3d header from central includes folder 2025-07-17 14:35:31 +02:00
3dcfd09cff
fix: make it build on nixos 2025-07-17 13:17:29 +02:00
Theo Champion
aa9f9bf6de normed + finished movements 2025-07-15 10:33:25 +02:00
Theo Champion
4f573baf23 Added a real rendering 2025-07-09 17:30:16 +02:00
Theo Champion
ba42e0d3e1 restarted movement core 2025-07-09 16:45:13 +02:00
Theo Champion
a8abe903cb ??? 2025-07-07 14:40:37 +02:00
Theo Champion
83fc0d7d35 removed useless define, added PHONY rule 2025-07-02 15:45:00 +02:00
Theo Champion
5c1d469cac Started bonus part
- added bonus rules in makefile
- added a BONUS define for bonus
- added a conditional check for characters
2025-07-02 15:35:05 +02:00
Theo Champion
34db19c1a2 testing with bonus rules 2025-06-30 16:16:45 +02:00
Theo Champion
2c009b5469 removed leaks 2025-06-25 18:08:19 +02:00
Theo Champion
c1484d2d3c started to move all variables to a struct 2025-06-24 11:51:49 +02:00
Theo Champion
321ef3db7c avant d'aller bosser a carreouf 2025-06-24 00:17:33 +02:00
Theo Champion
1d16d66d89 Continued parser 2025-06-06 18:38:21 +02:00
Theo Champion
935370ac63 Added filetype checking 2025-06-04 19:16:59 +02:00
Theo Champion
2ce0fe98ff Made makefile and a basic ass main 2025-05-05 17:09:11 +02:00