Commit graph

25 commits

Author SHA1 Message Date
Theo Champion
d34d4404e0 fix: Decreased the number of barricades 2025-09-22 17:22:02 +02:00
Theo Champion
43f1ab6090 norme: Fixed norme issues 2025-09-18 12:52:18 +02:00
Theo Champion
66c3bda4df dev: Added a registry for weapons
The registry is for storing weapons structs as they are closer to actual
objects than simple data.
2025-09-18 12:25:10 +02:00
Theo Champion
c3cb34c3bb enhancement: Added a nuzzle flash for the gun 2025-09-16 15:59:07 +02:00
Theo Champion
b0ac26a7f6 wip: Adding weapon class and usage 2025-09-11 23:41:00 +02:00
Theo Champion
5591ebd937 feat(barricades): added multiple textures for the barricades 2025-09-10 15:02:54 +02:00
Theo Champion
35b83e4ff7 feat: Added new wall type (barricades) 2025-09-09 10:17:28 +02:00
Theo Champion
416b7a833d Added weapon hud 2025-09-08 10:36:52 +02:00
Theo Champion
f80eb125f5 feat: Added the round counter on the hud 2025-09-03 18:39:30 +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
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
33f0c4e896 fix: removed trailing BONUS definition 2025-08-20 16:09:21 +02:00
Theo Champion
0d6cc4063a dev: changed the c var in place_base_sprites to a counter in data struct 2025-08-14 21:38:49 +02:00
Theo Champion
f1697a6c73 dev: Improved memory management of sprites 2025-08-12 14:49:11 +02:00
Theo Champion
10576f5751 feat: Made sprites dynamic in memory and allocated in heap 2025-08-07 12:36:22 +02:00
Theo Champion
258372bf09 feat: Added sprites 2025-08-06 14:06:52 +02:00
Theo Champion
d3ba05a36d feat: Made a sprite structure and added a static sprite field in data
A static sprite is a sprite that is not supposed to move, it'll be
placed at the parsing part. The sprite struct is prone to change as I am
testing it
2025-08-06 14:01:29 +02:00
c09ba88d90
feat: use t_img_data to store textures insted of void ptr
This allows for easier writing of future functions, see next pr comming soon
2025-08-05 13:20:26 +02:00
c4a867b054
feat: load and destroy wall textures 2025-08-05 12:11:06 +02:00
Theo Champion
2bc214103b feat: Added delta time variable 2025-07-31 14:12:53 +02:00
e625e254f7
feat: allocate screen_matrix on the heap 2025-07-31 13:38:49 +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
Theo Champion
1626b1d9da fix(hooks): Reworked keypresses events
Keypresses (along with keyreleases) events are now using booleans, a
function in the game loop will apply various changes as the key are
pressed. By default every boolean are set to false
2025-07-29 12:33:58 +02:00
6322d05b22
style: split structs.h header into multiple, remove from central dir 2025-07-17 15:57:59 +02:00