Commit graph

  • 6e4374dc3e fix: fixed segfault when compiling for mandatory part. Fixed bad check Theo Champion 2025-08-18 13:40:01 +02:00
  • b138fe8100 fix(sprite caster): Fixed crash when sprites overlap Theo Champion 2025-08-19 19:45:00 +02:00
  • 0ac7c27445 norme: Fixed norme error Theo Champion 2025-08-19 19:13:58 +02:00
  • 38487527f9 feat: Improved movements for the sprite Theo Champion 2025-08-19 18:58:55 +02:00
  • b680e49ef9 feat: Added some credits Theo Champion 2025-08-18 20:05:50 +02:00
  • 14f178759e feat: finished zombie movements code Theo Champion 2025-08-18 19:52:14 +02:00
  • c9fd8ea384 fix: Fixed norme issue Theo Champion 2025-08-18 19:20:33 +02:00
  • 3e8e4250c7 feat: New texture for the double tap perk machine Theo Champion 2025-08-18 18:56:23 +02:00
  • 5242679d95
    feat: load zombie sprites from map Khaïs COLIN 2025-08-18 13:21:52 +02:00
  • 8445f240a2
    feat: basic zombie movement (very bad) Khaïs COLIN 2025-08-18 13:21:52 +02:00
  • 2fc8cf21a1 fix: fixed segfault when compiling for mandatory part. Fixed bad check Theo Champion 2025-08-18 13:40:01 +02:00
  • 92770f44f8 fix: segfault & leak with missing sprite image Khaïs COLIN 2025-08-18 12:57:29 +02:00
  • c4dc4b573a
    fix: segfault & leak with missing sprite image Khaïs COLIN 2025-08-18 12:57:29 +02:00
  • 4568124d3f fix: git merge conflict again Theo Champion 2025-08-18 13:13:42 +02:00
  • 5c7cc77419 dev: improved how sprites are detected in maps Theo Champion 2025-08-18 13:07:08 +02:00
  • ef7a6c27a4 fix: Removed git conflict marker Theo Champion 2025-08-18 13:04:13 +02:00
  • 541bc9ccf8 dev: Added sprite types and gave 'base' sprites their types Theo Champion 2025-08-13 14:57:06 +02:00
  • 0ac6ee9394 norme: Fixed little oopsie Theo Champion 2025-08-14 21:45:39 +02:00
  • 3511b6aaf8 norme: Fixed little oopsie Theo Champion 2025-08-14 21:45:39 +02:00
  • 01f0ac21df feat: Made a little sprite interaction for perk type sprites Theo Champion 2025-08-13 15:31:40 +02:00
  • ee329812fd dev: Added sprite types and gave 'base' sprites their types Theo Champion 2025-08-13 14:57:06 +02:00
  • 0d6cc4063a dev: changed the c var in place_base_sprites to a counter in data struct Theo Champion 2025-08-14 21:38:49 +02:00
  • 4a70e44697 fix: Added a check for the sprites, to avoid segfaults and/or invalid writes Theo Champion 2025-08-14 21:27:53 +02:00
  • 94075506f6 fix: Transferred sprite pathes to constants Theo Champion 2025-08-14 21:25:03 +02:00
  • 412dc89336 fix: Transferred trailing magic error messages as consts Theo Champion 2025-08-14 19:52:34 +02:00
  • db66decbf8 fix: removed trailing BONUS definition Theo Champion 2025-08-12 16:18:34 +02:00
  • dafe94804e norme: normed everything Theo Champion 2025-08-12 16:15:02 +02:00
  • 00e8a73d14 dev: improved sprites by creating a create_sprite function Theo Champion 2025-08-12 15:57:27 +02:00
  • 09ff569a31 feat: made sprites be placed in map file Theo Champion 2025-08-12 15:41:42 +02:00
  • 04705fe9e5 feat: added temp perk textures and placed perks in testmap_2 Theo Champion 2025-08-12 15:40:29 +02:00
  • 41437ec215 dev: Changed magic values for error messages to constants Theo Champion 2025-08-12 13:45:53 +02:00
  • 2eb1d635d4 norme: Fixed little norm error Theo Champion 2025-08-12 13:45:26 +02:00
  • 9988b09e91 dev: Changed allowed characters to comply more about the current state of the game Theo Champion 2025-08-11 13:07:52 +02:00
  • f1697a6c73 dev: Improved memory management of sprites Theo Champion 2025-08-11 13:00:38 +02:00
  • 3230a60c9f fix: Fixed memory leak Theo Champion 2025-08-11 13:00:01 +02:00
  • aae5e42b13 fix(main): Bumped calloc for sprites from 3 to MAX_SPRITES and moved it Theo Champion 2025-08-11 11:51:23 +02:00
  • b7d56363ab removal(main): Removed sprites initialization in main function Theo Champion 2025-08-11 11:50:47 +02:00
  • fcb08f6447
    fix: various rendering issues Khaïs COLIN 2025-08-12 12:21:56 +02:00
  • 98e0119c91
    fix: prevent moving through walls in extreme lag situations Khaïs COLIN 2025-08-07 13:45:34 +02:00
  • b9b164e32d norm: Fixed norm errors except for comments in main function Theo Champion 2025-08-11 11:03:51 +02:00
  • 4564db6f2f feat: Added fps counter Theo Champion 2025-08-11 10:50:59 +02:00
  • a0967d5f93 fix(sprite caster): Added a check for empty list of sprites to avoid SEGFAULTing Theo Champion 2025-08-08 11:56:45 +02:00
  • c796d44b56 norme: finished norme for the sprites except in main.c Theo Champion 2025-08-07 13:45:01 +02:00
  • cab1036359 dev: made a 'macro' for sprite to write less and more efficiently Theo Champion 2025-08-07 13:19:17 +02:00
  • c8da6964d0 fix: moved almost all variables to the sprite structure Theo Champion 2025-08-07 12:59:43 +02:00
  • 10576f5751 feat: Made sprites dynamic in memory and allocated in heap Theo Champion 2025-08-07 12:35:01 +02:00
  • 2e0fd93831 fix: changed size of test.xpm Theo Champion 2025-08-07 12:33:47 +02:00
  • 9a113374a6 norm: normed code (except sprites) Theo Champion 2025-08-06 14:47:29 +02:00
  • 258372bf09 feat: Added sprites Theo Champion 2025-08-06 14:06:15 +02:00
  • 7a1e8c18df dev: moved my_mlx_get_pixel function in draw utils for easier access Theo Champion 2025-08-06 14:04:44 +02:00
  • aed03e79c3 fix: changed transparency color for the texture Theo Champion 2025-08-06 14:03:27 +02:00
  • 134a6e14f0 wip: trying to render sprites Theo Champion 2025-08-05 14:17:29 +02:00
  • d3ba05a36d feat: Made a sprite structure and added a static sprite field in data Theo Champion 2025-08-05 13:22:06 +02:00
  • 07dc80ba6a feat: added a poorly drawn mystery box texture Theo Champion 2025-08-05 13:20:52 +02:00
  • a18c115ef1
    fix: prevent crash due to out-of-bounds when game lags Khaïs COLIN 2025-08-06 11:24:15 +02:00
  • 1d6d97ef25
    feat: enhance minimap rendering Khaïs COLIN 2025-08-05 15:15:08 +02:00
  • a46fdff49a
    fix: correct error exit code when texture has error Khaïs COLIN 2025-08-05 15:10:12 +02:00
  • a4d85c3cbb
    tests: add test for detecting wrong texture size Khaïs COLIN 2025-08-05 15:05:06 +02:00
  • c4bb3efe3e
    feat: floor and ceiling colors Khaïs COLIN 2025-08-05 14:55:41 +02:00
  • c242df5b72
    feat: texture rendering Khaïs COLIN 2025-08-05 12:55:57 +02:00
  • c09ba88d90
    feat: use t_img_data to store textures insted of void ptr Khaïs COLIN 2025-08-05 13:08:47 +02:00
  • 121db8bd3c
    norm: fix a few norm errors Khaïs COLIN 2025-08-05 12:53:06 +02:00
  • f21e1e56fb
    fix: use t_cardinal_dir instead of an int to represent direction Khaïs COLIN 2025-08-05 12:40:53 +02:00
  • c4a867b054
    feat: load and destroy wall textures Khaïs COLIN 2025-07-31 13:43:08 +02:00
  • 184ecc7eb3 tests: make a map use the textures Khaïs COLIN 2025-07-31 13:43:08 +02:00
  • 12892a389a feat: add bad textures Khaïs COLIN 2025-07-31 13:43:08 +02:00
  • 265714c952 feat: add bad textures Khaïs COLIN 2025-07-31 13:43:08 +02:00
  • 770f3d5ec0
    feat: rotation via deltatime + fix deltatime calculation Khaïs COLIN 2025-07-31 14:53:18 +02:00
  • 11ea82f935 fix: tweaked movement and rotation values to comply with delta Theo Champion 2025-07-31 14:46:02 +02:00
  • 59b79701d6 fix: Fixed get_milliseconds() calculation Theo Champion 2025-07-31 14:45:31 +02:00
  • 008a1f9dc8 feat: Improved movements with delta Theo Champion 2025-07-31 14:45:11 +02:00
  • 34a171eabc
    tests: make a map use the textures Khaïs COLIN 2025-07-31 13:43:08 +02:00
  • e01e28a258
    feat: add bad textures Khaïs COLIN 2025-07-31 13:43:08 +02:00
  • 2bc214103b feat: Added delta time variable Theo Champion 2025-07-31 14:07:56 +02:00
  • 02940e9ecf fix: readded matrix allcation (oopsy daisy) Theo Champion 2025-07-31 14:05:30 +02:00
  • 05e24d19f9 cleanup: moved initialization code from main() to a separate file Theo Champion 2025-07-31 13:31:05 +02:00
  • 7b0d05532c cleanup(raycast): renamed render.c to walls.c to not confuse it with the actual renderer Theo Champion 2025-07-31 13:18:35 +02:00
  • e625e254f7
    feat: allocate screen_matrix on the heap Khaïs COLIN 2025-07-31 13:17:27 +02:00
  • 8d0a6d841b feat(README): Added warning regarding certain valgrind errors Theo Champion 2025-07-31 12:20:19 +02:00
  • ca5fa86d10
    fix: prevent zero-division in rare cases Khaïs COLIN 2025-07-31 11:55:41 +02:00
  • 6fe6eb0a9a norm: removed unused code Theo Champion 2025-07-31 11:28:53 +02:00
  • 3cc73fc8ce feat: added colors depending on cardinal facing Theo Champion 2025-07-31 11:24:23 +02:00
  • fb57ef253a docs: documented ray struct Theo Champion 2025-07-30 16:46:31 +02:00
  • f21b8dc448 fix: fixed norme Theo Champion 2025-07-30 16:40:33 +02:00
  • e28cd1c85b feat: readded minimap Theo Champion 2025-07-30 16:35:39 +02:00
  • 5281fe6abd feat: made 3d... for the cub3d Theo Champion 2025-07-30 16:25:12 +02:00
  • 077659cd25 feat: Added raycaster (concept only no drawing yet) Theo Champion 2025-07-30 13:34:36 +02:00
  • 7c42208d20 dev: added ray structure Theo Champion 2025-07-30 12:07:05 +02:00
  • a9b5fbd370 chore(map): changed spawn angle to north for easier debugging of angles: Theo Champion 2025-07-29 20:15:20 +02:00
  • 788f248c5e fix: norme compliance Theo Champion 2025-07-29 20:13:43 +02:00
  • b6eeea5e9f feat(player): reimplemented angles Theo Champion 2025-07-29 19:50:23 +02:00
  • e46f199606 fix: forgot to add header file Theo Champion 2025-07-29 15:03:10 +02:00
  • 2e1838e0bd removal(player): removed old angle code as it's incompatible with new methods Theo Champion 2025-07-29 15:02:40 +02:00
  • faf5127829 feat(player): redid all the movement code more details in desc Theo Champion 2025-07-29 14:58:30 +02:00
  • ac94e9e937 fix(player init): deleted old init_player function in favor of the new one Theo Champion 2025-07-29 13:33:41 +02:00
  • 9c710c13e3 fix: removed stash conflict Theo Champion 2025-07-29 13:33:04 +02:00
  • 1626b1d9da fix(hooks): Reworked keypresses events Theo Champion 2025-07-29 12:31:05 +02:00
  • fa3cb8da4a fix(player): reworked angles for player and added player initialization Theo Champion 2025-07-29 12:14:44 +02:00
  • 6c5a15915f removal: commented old raycaster loop Theo Champion 2025-07-28 17:21:29 +02:00
  • 5161bc4e49 feat(maps): added new map for easier testing of the raycaster Theo Champion 2025-07-28 17:17:26 +02:00