Commit graph

16 commits

Author SHA1 Message Date
mcolonna
607302bebb change: adapt to cluster screen size 2024-11-22 12:13:16 +01:00
mcolonna
da5f45a32e norm 2024-11-21 16:21:44 +01:00
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
c8b3a42d13 add: better timedloop (uses FPS) for bonus 2024-11-19 15:36:39 +01:00
ReverseSky
fc318fc851 modified scaling minimap 2024-11-19 14:08:10 +01:00
mcolonna
7684e02cc5 change: minimap: change player color to blue 2024-11-19 13:31:46 +01:00
mcolonna
2ec9ce4f8e change: minimap: pretty player with fov 2024-11-19 13:30:01 +01:00
mcolonna
e7d5a5ce69 clean code *
- add constants for each minimap color
- rename, reorganize and make static minimap functions
- main.c:draw_screen() calls draw_minimap() instead of render().
- clean code and norm
2024-11-18 14:22:11 +01:00
Gregory Robledo
57b099d013 added minimap 2024-11-15 15:39:12 +01:00
mcolonna
96cc9096cd dev: fix all 42 headers with the good names&emails 2024-11-14 13:32:31 +01:00
Zy
f0680246a6 dev: clean TODOs 2024-11-13 19:00:46 +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
184c8a60af use ceiling and floor colors from the map file 2024-11-07 19:29:58 +01:00
mcolonna
f77a4446b6 add rotate with mouse 2024-11-07 18:03:38 +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