https://github.com/bima42/cub3d_map_generator
Python script to generate random map for cub3d project
https://github.com/bima42/cub3d_map_generator
Last synced: 4 months ago
JSON representation
Python script to generate random map for cub3d project
- Host: GitHub
- URL: https://github.com/bima42/cub3d_map_generator
- Owner: Bima42
- Created: 2022-05-20T14:00:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T15:44:48.000Z (over 3 years ago)
- Last Synced: 2025-04-12T13:31:24.276Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cub3d_map_generator
## Install
```
git clone
python3 cub3d_map_generator.py
```
- You can clone this generator in your cub3d repository
- Add your texture path (ex : ./textures/)
- Add your RGB ceiling datas (ex : 220,40,0)
- Same for RGB floor datas
- The map.cub file is created !
- NOTE : go to the script and modify sizex and sizey to change maze size
HUGE THANKS TO [@Jerome-JJT](https://github.com/Jerome-JJT)
## Depth First Search Algorithm (DFS)
This script is based on DFS algorithm.
https://user-images.githubusercontent.com/87313922/169560415-e023bed9-5cff-4b8e-9e00-1c810571337b.mp4
## Sources
- https://en.wikipedia.org/wiki/Depth-first_search
- https://favtutor.com/blogs/depth-first-search-python