Theo Champion
5da3583077
dev: added new makefile rule for compiling with sanitizers
2025-09-14 17:43:46 +02:00
Theo Champion
c7c71690e2
dev: Added raycasting rule for zombies
2025-09-14 17:43:20 +02:00
Theo Champion
d7781f44d2
feat: Added shooting event
2025-09-14 17:42:48 +02:00
Theo Champion
b0ac26a7f6
wip: Adding weapon class and usage
2025-09-11 23:41:00 +02:00
Theo Champion
87c0a8a991
fix: fixed texture leakage
2025-09-10 15:19:30 +02:00
Theo Champion
ecb99e4840
norme: fixed a line that was too long
2025-09-10 15:03:55 +02:00
Theo Champion
5591ebd937
feat(barricades): added multiple textures for the barricades
2025-09-10 15:02:54 +02:00
Theo Champion
40e71b4616
norme: fixed norme issues
2025-09-09 14:17:08 +02:00
Theo Champion
7852962d56
feat: finished barricades
2025-09-09 14:09:20 +02:00
Theo Champion
9274a11c70
feat: "Added" zombie spawning from barricades
2025-09-09 13:20:50 +02:00
Theo Champion
35b83e4ff7
feat: Added new wall type (barricades)
2025-09-09 10:17:28 +02:00
Theo Champion
d295c77360
chore: Added barricade texture (temporary)
2025-09-09 10:17:04 +02:00
Theo Champion
88157d091e
chore: New map added to test barricades
2025-09-09 10:16:28 +02:00
Theo Champion
a0f20b396c
norme: fixed norme issues
2025-09-08 17:34:35 +02:00
Theo Champion
f407f5b7ce
fix: fixed textures leaks
2025-09-08 17:11:58 +02:00
Theo Champion
80150ce24d
removal(minimap): Removed zombie tile
2025-09-08 13:59:35 +02:00
Theo Champion
baccf93ac3
fix: changed ifs to else ifs for the perk hud code
2025-09-08 13:58:03 +02:00
Theo Champion
416b7a833d
Added weapon hud
2025-09-08 10:36:52 +02:00
Theo Champion
fe665eaa4e
fix: changed box texture
2025-09-05 20:06:25 +02:00
Theo Champion
f80eb125f5
feat: Added the round counter on the hud
2025-09-03 18:39:30 +02:00
Theo Champion
82d7941e81
feat: Added a little 'cheat' for the points
2025-09-03 16:41:51 +02:00
Theo Champion
c4e5ff619a
fix: Initialized textures and perk orders to none for the player
2025-09-03 16:41:32 +02:00
Theo Champion
8d229e9c2b
norme: Fixed norme error
2025-09-03 16:39:12 +02:00
Theo Champion
77a532a223
feat: Added perk logos to the left of the HUD
2025-09-03 16:38:38 +02:00
Theo Champion
cd7d0ddcfc
fix: Fixed position of points
2025-09-03 16:37:28 +02:00
Theo Champion
647c8a5e48
dev: Added some ressources
...
- Added a new map to test the number of zombies
- Added temp textures for the perk logos
2025-09-03 16:34:24 +02:00
Theo Champion
b2ec8d079c
dev(points): Reverted old base value for points
2025-09-01 15:43:30 +02:00
Theo Champion
8ecc7d3849
dev: changed the base point value of the player for debugging
2025-08-20 17:10:13 +02:00
Theo Champion
761d126ba2
feat(points): Finished point counter on the right of the screen
...
Some things are temporary, like the load single image function that
still has comments. I'll make a function like this to restore the
original code (almost). I'll also pass the pathes as constants for the
sake of maintainabilty and try to avoid some of the magic values in the
code for the same purpose.
2025-08-20 17:09:56 +02:00
Theo Champion
242cbe3c7c
dev: Added a matrix image set function
...
- Amended for adding support of transparency, works the same as sprites
2025-08-20 16:54:14 +02:00
Theo Champion
70f6a36aad
dev: Added width and height texture information
2025-08-20 16:39:39 +02:00
Theo Champion
33f0c4e896
fix: removed trailing BONUS definition
2025-08-20 16:09:21 +02:00
Theo Champion
792d8fc37a
feat: Added point counter at the right of the screen (basic)
2025-08-20 15:49:31 +02:00
Theo Champion
4a2b4eb287
fix: Changed the fps counter, switched from a DMA to a static memory allocation
2025-08-20 15:32:57 +02:00
Theo Champion
9ec4a33fc8
dev: Added a ft_itoa_static function to avoid malloc'ing and free'ing every frame
2025-08-20 15:29:33 +02:00
Theo Champion
e8fac75779
dev: Created figures textures
2025-08-20 13:57:47 +02:00
fb4680e4bd
feat: close window and exit on window close event
2025-08-20 13:53:18 +02:00
Theo Champion
0771881690
feat: New texture for the double tap perk machine
2025-08-20 13:43:40 +02:00
Theo Champion
a6c6420398
fix: Used blocking check function instead of rewriting test
2025-08-20 12:49:33 +02:00
Theo Champion
c643d9f22a
fix: Fixed inversion of x and y for blocking checks functions
2025-08-20 12:48:48 +02:00
Theo Champion
b138fe8100
fix(sprite caster): Fixed crash when sprites overlap
...
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 ?
2025-08-19 19:45:00 +02:00
Theo Champion
0ac7c27445
norme: Fixed norme error
2025-08-19 19:13:58 +02:00
Theo Champion
38487527f9
feat: Improved movements for the sprite
2025-08-19 18:58:55 +02:00
Theo Champion
b680e49ef9
feat: Added some credits
2025-08-18 20:05:50 +02:00
Theo Champion
14f178759e
feat: finished zombie movements code
2025-08-18 19:52:14 +02:00
Theo Champion
c9fd8ea384
fix: Fixed norme issue
2025-08-18 19:20:33 +02:00
5242679d95
feat: load zombie sprites from map
2025-08-18 13:58:24 +02:00
8445f240a2
feat: basic zombie movement (very bad)
2025-08-18 13:42:47 +02:00
Theo Champion
2fc8cf21a1
fix: fixed segfault when compiling for mandatory part. Fixed bad check
2025-08-18 13:40:01 +02:00
92770f44f8
fix: segfault & leak with missing sprite image
2025-08-18 13:18:12 +02:00