diff --git a/Makefile b/Makefile index d5ad61d..48cdbff 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,8 @@ ECHO = echoo(){ \ fi; \ };echoo +_default : bonus + all : $(NAME) bonus : diff --git a/README.md b/README.md new file mode 100644 index 0000000..64468c8 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# cub3d + +this is a little kind of video-game i made for 42 school with [ReverseSky on github](https://github.com/ReverseSky). it uses the MinilibX library. + +## compile and run + +this project only works on linux (it may work on macOS too but you will need to manually add the MinilibX library for macOS). + +1. in your terminal, run `make -v`. +if you have a `command not found` error or equivalent, you will need to install `make`. on ubuntu / debian, run: +```sh +$ sudo apt install make +``` + +2. clone the repository and cd inside it: +```sh +$ git clone https://gitea.zaclys.com/frzysk/42_cub3d +$ cd 42_cub3d +``` + +3. build the game: +```sh +$ make +``` + +4. run the game: +``` +$ ./cub3d maps/weirdshape.cub +``` +(you can use any file inside maps/) + +## play + +- use arrows, W/A/S/D or Z/Q/S/D to move. +- you can also click on the window to use the mouse. +- press ESC to quit. + +there is a counter of your moves. try to finish the game with the less moves possible :) diff --git a/testmaps/good_big.cub b/maps/big.cub similarity index 100% rename from testmaps/good_big.cub rename to maps/big.cub diff --git a/testmaps/good_directions.cub b/maps/directions.cub similarity index 100% rename from testmaps/good_directions.cub rename to maps/directions.cub diff --git a/testmaps/good_directions_test.cub b/maps/directions_test.cub similarity index 100% rename from testmaps/good_directions_test.cub rename to maps/directions_test.cub diff --git a/testmaps/good_floor_ceiling.cub b/maps/floor_ceiling.cub similarity index 100% rename from testmaps/good_floor_ceiling.cub rename to maps/floor_ceiling.cub diff --git a/testmaps/good_little.cub b/maps/little.cub similarity index 100% rename from testmaps/good_little.cub rename to maps/little.cub diff --git a/testmaps/good_reallyweirdblank.cub b/maps/reallyweirdblank.cub similarity index 100% rename from testmaps/good_reallyweirdblank.cub rename to maps/reallyweirdblank.cub diff --git a/testmaps/good_weirdblank.cub b/maps/weirdblank.cub similarity index 100% rename from testmaps/good_weirdblank.cub rename to maps/weirdblank.cub diff --git a/testmaps/good_weirdshape.cub b/maps/weirdshape.cub similarity index 100% rename from testmaps/good_weirdshape.cub rename to maps/weirdshape.cub