Commit graph

  • d856a10ffc
    feat: calculate distance to first horizontal line Khaïs COLIN 2025-07-29 10:45:03 +02:00
  • 76fba8fd8a
    feat: player coordinate are at the center of a tile Khaïs COLIN 2025-07-29 10:45:03 +02:00
  • 15de3cc857
    feat: add utility function to convert coordinates from global to local space Khaïs COLIN 2025-07-29 10:26:52 +02:00
  • b53fa93377 feat: separate utility functions for cardinal and intercardinal directions Khaïs COLIN 2025-07-28 14:59:07 +02:00
  • ccd9afa9c1
    feat: separate utility functions for cardinal and intercardinal directions Khaïs COLIN 2025-07-28 14:59:07 +02:00
  • 8fd70cb18a feat: utility func to get cardinal direction from angle Khaïs COLIN 2025-07-28 14:10:01 +02:00
  • dd82d902a5 feat: draw view cone (without DDA) Khaïs COLIN 2025-07-28 13:04:32 +02:00
  • b6ac8867e5 feat: send single ray Khaïs COLIN 2025-07-28 12:16:26 +02:00
  • 0afec76ab1
    feat: utility func to get cardinal direction from angle Khaïs COLIN 2025-07-28 14:10:01 +02:00
  • 6bd9b5e3c2
    feat: draw view cone (without DDA) Khaïs COLIN 2025-07-28 13:04:32 +02:00
  • 8eb247ae3e
    feat: send single ray Khaïs COLIN 2025-07-28 12:16:26 +02:00
  • c19b4087b9 feat: draw view cone (without DDA) Khaïs COLIN 2025-07-28 13:04:32 +02:00
  • 805ddbab0b feat: send single ray Khaïs COLIN 2025-07-28 12:16:26 +02:00
  • b6aa74d8d8
    feat: draw view cone (without DDA) feat-draw-view-cone Khaïs COLIN 2025-07-28 13:04:32 +02:00
  • e4523ff8b4
    feat: send single ray Khaïs COLIN 2025-07-28 12:16:26 +02:00
  • ff07c5cea1 feat(player init): Set the right angle depending on the letter on the map Theo Champion 2025-07-28 11:12:24 +02:00
  • a9c64abfb9 feat(player init): Set the right angle depending on the letter on the map Theo Champion 2025-07-28 11:12:24 +02:00
  • 17768e24ae fix(README): fixed typo Theo Champion 2025-07-25 14:57:16 +02:00
  • 0ce0ea78ee fix: renamed ANGLE_SPEED to ROTATION_SPEED Theo Champion 2025-07-25 14:54:13 +02:00
  • 38feba022f fix: added angle.c to the compilation chain Theo Champion 2025-07-24 14:50:25 +02:00
  • ca82add75f fix: created angle.c and moved part of the movement to comply with norme Theo Champion 2025-07-24 14:49:41 +02:00
  • 6f25b4e530 feat: added angle support Theo Champion 2025-07-24 14:37:18 +02:00
  • 300f5c2e19 chore: added libmath to compilation command Theo Champion 2025-07-24 14:36:40 +02:00
  • bcb7f5dcd6 doc: added some documentation for angles Theo Champion 2025-07-24 14:36:11 +02:00
  • 3c12c1594e fix: give error for trailing chars after map Khaïs COLIN 2025-07-23 13:31:58 +02:00
  • a8e927a43f fix(README): fixed typo Theo Champion 2025-07-25 14:57:16 +02:00
  • ff2b0436f9 fix: renamed ANGLE_SPEED to ROTATION_SPEED Theo Champion 2025-07-25 14:54:13 +02:00
  • dd5b0af0eb fix: added angle.c to the compilation chain Theo Champion 2025-07-24 14:50:25 +02:00
  • 37e143d32d fix: created angle.c and moved part of the movement to comply with norme Theo Champion 2025-07-24 14:49:41 +02:00
  • bec6b27879 feat: added angle support Theo Champion 2025-07-24 14:37:18 +02:00
  • 10b2d727de chore: added libmath to compilation command Theo Champion 2025-07-24 14:36:40 +02:00
  • b6c1081c7c doc: added some documentation for angles Theo Champion 2025-07-24 14:36:11 +02:00
  • c323abbc3e fix: give error for trailing chars after map Khaïs COLIN 2025-07-23 13:31:58 +02:00
  • 3543807548 fix: give error for trailing chars after map Khaïs COLIN 2025-07-23 13:31:58 +02:00
  • 6f0afd4543
    fix: give error for trailing chars after map Khaïs COLIN 2025-07-23 13:31:58 +02:00
  • 2d3d614ab3 tests: add a script to quickly run the program through all bad maps Khaïs COLIN 2025-07-23 12:08:48 +02:00
  • ec00bb1048
    tests: add a script to quickly run the program through all bad maps Khaïs COLIN 2025-07-23 12:08:48 +02:00
  • 4b861f77ea fix: Used the right free function for the split Theo Champion 2025-07-23 12:21:29 +02:00
  • 279d155701 fix: removed useless NULL checks as demanded Theo Champion 2025-07-23 12:19:14 +02:00
  • af8b63b0ca fix(texture setting): Fixed leak when map starts before all textures are set Theo Champion 2025-07-22 12:58:10 +02:00
  • a67010b929 fix(setters): added a tiny bit of security when freeing data Theo Champion 2025-07-22 12:57:39 +02:00
  • d52143e432 fix: Used the right free function for the split Theo Champion 2025-07-23 12:21:29 +02:00
  • d165aa0209 fix: removed useless NULL checks as demanded Theo Champion 2025-07-23 12:19:14 +02:00
  • cf93847129 fix(texture setting): Fixed leak when map starts before all textures are set Theo Champion 2025-07-22 12:58:10 +02:00
  • 01a8119fe2 fix(setters): added a tiny bit of security when freeing data Theo Champion 2025-07-22 12:57:39 +02:00
  • 7449450c52
    style: use constants for window width and height Khaïs COLIN 2025-07-22 12:48:44 +02:00
  • 6aecc3ba6e
    style: use a constant for error message length Khaïs COLIN 2025-07-22 12:03:14 +02:00
  • d7ca150c74 fix: Changed return type of set_color() and converted types for colors Theo Champion 2025-07-22 12:12:36 +02:00
  • 4b2f671107 norm: fixed all the norme issues in the perform_color_checks() function Theo Champion 2025-07-22 12:12:07 +02:00
  • c495547a70 fix: redid all the checks for the color Theo Champion 2025-07-21 17:26:14 +02:00
  • ea8d3e085a fix: fixed malformed test map file Theo Champion 2025-07-21 15:57:58 +02:00
  • 8d3746dd53
    feat(map parsing): show error if same texture directive is given twice Khaïs COLIN 2025-07-21 13:09:30 +02:00
  • 3e28da1fcf
    refactor: put all populate_map related code in that file Khaïs COLIN 2025-07-21 15:22:41 +02:00
  • b564311851 fix(Makefile): fixed rule to make the MinilibX compile Theo Champion 2025-07-21 13:33:10 +02:00
  • 141db7ab2d test: Added a bad map where a color is missing Theo Champion 2025-07-21 13:21:00 +02:00
  • 2230e24132 Merge branch 'master' into new-color-test Khaïs COLIN 2025-07-21 13:37:07 +02:00
  • 3d9559088a fix(parser): Added message when there is no player in map Theo Champion 2025-07-21 13:09:41 +02:00
  • cbbf91d21e test: Added a bad map where a color is missing Theo Champion 2025-07-21 13:21:00 +02:00
  • 40e0673425
    fix: allow empty lines between texture definitions Khaïs COLIN 2025-07-21 12:38:28 +02:00
  • 5b9c293503
    tests: add good map with texture and colors mixed Khaïs COLIN 2025-07-21 12:38:28 +02:00
  • 62943e5675
    tests: add bad map with empty lines between declarations and duplicated declarations Khaïs COLIN 2025-07-21 12:38:28 +02:00
  • e2746efe48 chore: added color related bad maps Theo Champion 2025-07-21 12:47:53 +02:00
  • cb3df61edd chore: added a bad map where no player can spawn Theo Champion 2025-07-21 12:36:02 +02:00
  • 2c7eef8f6c
    fix: free map when parsing fails Khaïs COLIN 2025-07-21 11:50:30 +02:00
  • c5f15dbf11
    fix: check that mlx initialized succesfully before using Khaïs COLIN 2025-07-21 11:29:36 +02:00
  • 8259ef238d
    todos: remove in-project todo file Khaïs COLIN 2025-07-17 16:20:53 +02:00
  • 4a2ad1fa58
    build: overhaul Makefile Khaïs COLIN 2025-07-17 16:07:26 +02:00
  • 6322d05b22
    style: split structs.h header into multiple, remove from central dir Khaïs COLIN 2025-07-17 14:57:29 +02:00
  • 38a05423dd
    style: move consts header to src folder Khaïs COLIN 2025-07-17 14:55:04 +02:00
  • 7000634228
    style: remove maputils header from central includes folder Khaïs COLIN 2025-07-17 14:33:55 +02:00
  • 8ec3f2e11c
    style: remove cub3d header from central includes folder Khaïs COLIN 2025-07-17 14:19:34 +02:00
  • 4ffc52b462
    style: remove mlx & libft headers from central includes folder Khaïs COLIN 2025-07-17 14:11:30 +02:00
  • d7efc43f12
    fix: potential leak with gnl due to non-exhaustion Khaïs COLIN 2025-07-17 13:38:59 +02:00
  • 085a51ca6d
    todo: add todos from first review of the existing code Khaïs COLIN 2025-07-16 11:09:49 +02:00
  • 3dcfd09cff
    fix: make it build on nixos Khaïs COLIN 2025-07-16 11:08:21 +02:00
  • be6c44c24b transforming markdown stuff into plain text streams Theo Champion 2025-07-17 13:12:44 +02:00
  • 621c38573c transforming markdown stuff into plain text streams Theo Champion 2025-07-17 11:54:49 +02:00
  • aa9f9bf6de normed + finished movements Theo Champion 2025-07-15 10:33:25 +02:00
  • cc12b7554a sort of finished movements Theo Champion 2025-07-10 12:04:17 +02:00
  • 4f573baf23 Added a real rendering Theo Champion 2025-07-09 17:30:16 +02:00
  • 3b495f213f added keyrelease event Theo Champion 2025-07-09 17:12:10 +02:00
  • a58783350d added movement vector movement core Theo Champion 2025-07-09 17:08:01 +02:00
  • ba42e0d3e1 restarted movement core Theo Champion 2025-07-09 16:45:13 +02:00
  • a8abe903cb ??? Theo Champion 2025-07-07 14:40:37 +02:00
  • 83fc0d7d35 removed useless define, added PHONY rule Theo Champion 2025-07-02 15:45:00 +02:00
  • 5c1d469cac Started bonus part - added bonus rules in makefile - added a BONUS define for bonus - added a conditional check for characters Theo Champion 2025-07-02 15:35:05 +02:00
  • 34db19c1a2 testing with bonus rules Theo Champion 2025-06-30 16:16:45 +02:00
  • de740ad418 added todolist Theo Champion 2025-06-25 18:14:13 +02:00
  • 561ea7eb31 updated gitignore Theo Champion 2025-06-25 18:10:00 +02:00
  • 814bb3ff49 removed vgcore files Theo Champion 2025-06-25 18:08:53 +02:00
  • 2c009b5469 removed leaks Theo Champion 2025-06-25 18:08:19 +02:00
  • c1484d2d3c started to move all variables to a struct Theo Champion 2025-06-24 11:51:49 +02:00
  • f9825feeea Added flood fill algorithm finally, to check for holes in map Theo Champion 2025-06-24 10:41:50 +02:00
  • 321ef3db7c avant d'aller bosser a carreouf Theo Champion 2025-06-24 00:17:33 +02:00
  • b185cddbf0 almost finished norm Theo Champion 2025-06-21 00:17:09 +02:00
  • 977385492b Added frees for the mapdata structure Theo Champion 2025-06-20 23:59:27 +02:00
  • 9ba3771ebf no flood fill I guess Theo Champion 2025-06-20 19:54:20 +02:00
  • b30dda9c62 fixed some checking Theo Champion 2025-06-20 19:45:40 +02:00
  • 63d4eb28ef added character checker and started the flood filling Theo Champion 2025-06-20 15:40:50 +02:00
  • 1206ef2f3d Added wall check in the parser. Now doing the flood fill Theo Champion 2025-06-20 15:24:05 +02:00