El proyecto So_Long consiste en la creaciΓ³n un programa en C que sea capaz de cargar mapas aleatorios de un archivo y permita al jugador moverse por el mapa. El objetivo principal es familiarizarte con la manipulaciΓ³n de archivos, el manejo de memoria y la programaciΓ³n en C.
.
βββ Makefile
βββ README.md
βββ include/
β βββ solong.h
βββ libft/
βββ maps/
β βββ errors/
β β βββ map_barriertest.ber
β β βββ map_counttest.ber
β β βββ map_pathtest.ber
β β βββ map_shapetest.ber
β βββ map1.ber
β βββ map2.ber
β βββ map_medium.ber
βββ mlx/
βββ objs/
βββ sprites/
β βββ coin.png
β βββ coin.xpm
β βββ door.png
β βββ door.xpm
β βββ floor.png
β βββ floor.xpm
β βββ isaac.png
β βββ isaac.xpm
β βββ wall.png
β βββ wall.xpm
βββ src/
βββ check_walls.c
βββ ingame.c
βββ main.c
βββ mapcheck.c
βββ mapcreation.c
βββ pathcheck.c
βββ playermovement.c
βββ windowconfig.c
- Take the map and create a vector of it
- Check the map shape
- Check if it's a good map
- Check if there is at least one path
- Check if the player is not trapped
- Choose a theme
- Search the images and convert them to xpm with the right size
- Take each xpm file and convert them to images that mlx can show on a window
- Create the game window
- Establish the right configuration for the window
- Show images in the game window
- Implement key_hook cases for player movement and closing the window
- Implement logic for player movement within the map
- Allow the player to collect objects placed on the map
- Keep track of the number of collected objects
- Keep track of the number of movements
- Ensure proper memory deallocation
- Check that everyting passes norminette
- Create the Makefile and make sure it doesnt relink