/cub3d_map_generator

Python script to generate random map for cub3d project

Primary LanguagePython

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

Depth First Search Algorithm (DFS)

This script is based on DFS algorithm.

maze_generator.mp4

Sources