Commit graph

15 commits

Author SHA1 Message Date
mcolonna
1de30894fd add README.md and clean 2025-07-31 17:37:16 +02: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
f3da11b105 dev: add TODOs of things to fix 2024-11-20 16:58:44 +01:00
ReverseSky
fc318fc851 modified scaling minimap 2024-11-19 14:08:10 +01:00
mcolonna
465aacdefe fix: add check for 0 or 2+ players on a map 2024-11-18 14:27:51 +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
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
Gregory Robledo
50c4e56303 removed g_ray and g_tex 2024-10-22 15:59:58 +02:00
Gregory Robledo
fab7758283 manque render mur pas fixe 2024-10-17 18:04:40 +02:00
mcolonna
39158f4890 fix: map parsing manages blank spaces better 2024-10-17 16:04:45 +02:00
mcolonna
20e92ef401 change: moving with hitbox 2024-10-17 14:21:27 +02:00
mcolonna
d1f2136b13 merge map parsing with expose 2024-10-15 18:23:16 +02:00
mcolonna
40d8462689 Add map checks *
add:
- check if map is surronded by walls
- check file extension
dev:
- Makefile: now can include libraries
- add library libft
- add testmaps
- norm
2024-10-10 13:40:39 +02:00
mcolonna
5bad24dcee add map parsing and other things 2024-10-04 15:32:12 +02:00