Commit graph

8 commits

Author SHA1 Message Date
mcolonna
424b9aa7b2 fixings and improvements
dev:
- add documentation
- main() is more readable

fix:
- unmanaged errors:
  - map parsing: error if color value is >255
  - map parsing: load_textures(): check return value of xml_xpm_file_to_image()
  - main.c: draw_screen(): check return value of mlx_new_image()

other details:
- dev: color_from_rgb(): change signature
- fix: nullize map in map_destroy
- change: change error message for read_all_text() errors
- change: change rotation speed
- change: add and use contant NOOBONUS_SPEED
2024-11-21 15:25:36 +01:00
mcolonna
54f61ee4b0 dev: norm 2024-11-19 13:33:58 +01:00
mcolonna
465aacdefe fix: add check for 0 or 2+ players on a map 2024-11-18 14:27:51 +01:00
mcolonna
96cc9096cd dev: fix all 42 headers with the good names&emails 2024-11-14 13:32:31 +01:00
mcolonna
6007f27510 fix: render *
fix:
- fix texture for each direction (north texture is in north etc)
- fix mirror textures (the left of each texture is at its left)
- fix dimensions (walls are 1x1 for any window dimensions or FOV)
- optimize render()

dev:
- add testmaps/good_directions_test.cub
- add textures/test/*.xpm
2024-11-13 18:59:07 +01:00
mcolonna
26621c72c6 docs, clean, several things... *
- add docs
- remove unused things
- redo modifications i accidentally erased from spacetime
2024-11-07 01:03:05 +01:00
mcolonna
47a6b6df35 reorganize file content 2024-10-31 18:04:34 +01:00
mcolonna
878de1098b reorganize all files (only renamings) 2024-10-31 16:06:33 +01:00
Renamed from map.h (Browse further)