38 lines
952 B
Markdown
38 lines
952 B
Markdown
# 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 :)
|