Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eschirni/cub3d
42 project cub3d, with a main menu, settings, sound & music, a minimap, actual gameplay with a random generated map, an endscreen with a highscore and more features coming soon
https://github.com/eschirni/cub3d
2d-to-3d 42 42heilbronn c collision-detection cub3d minimap mlx42 raycasting ui
Last synced: 3 months ago
JSON representation
42 project cub3d, with a main menu, settings, sound & music, a minimap, actual gameplay with a random generated map, an endscreen with a highscore and more features coming soon
- Host: GitHub
- URL: https://github.com/eschirni/cub3d
- Owner: eschirni
- License: mit
- Created: 2022-06-07T16:04:35.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T08:39:49.000Z (9 months ago)
- Last Synced: 2024-04-19T09:41:54.828Z (9 months ago)
- Topics: 2d-to-3d, 42, 42heilbronn, c, collision-detection, cub3d, minimap, mlx42, raycasting, ui
- Language: C
- Homepage:
- Size: 36.8 MB
- Stars: 46
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# How to download & execute
- Go to releases and download the last release for your OS or git clone directly from this repository
- Copy this command to your terminal to install brew with [(Click here in order to install to 42 campus computers)](#how-to-install-brew-to-42-computers)
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```
- Download glfw with ```brew install glfw``` or any packet downloader of your choice
- Go to the game folder (directory) where the ```Makefile``` is
- Write this command to your terminal: ```make re```
- Write this command to your terminal to start the game: ```./cub3d```
- Enjoy :)
## Controls
```W``` Move Forward
```S``` Move Back
```D``` Move Right
```A``` Move Left
```F``` Open Doors
```ESC``` To Switch Main Menu
```Mouse Move``` Look Around
## Instructions
You are in a dungeon to collect some hidden quests. Use ```W A S D``` buttons to move and use ```mouse``` to look around. But be careful!
Quest guard Luci doesn't like people who try to steal his treasures.
Hence, it will be following you. Watch your six!
### How to install brew to 42 computers?
```bash
rm -rf $HOME/.brew && rm -rf $HOME/goinfre/.brew && git clone --depth=1 https://github.com/Homebrew/brew $HOME/goinfre/.brew && echo 'export PATH=$HOME/goinfre/.brew/bin:$PATH' >> $HOME/.zshrc && source $HOME/.zshrc && brew update
```