A retro style homage to 80s dungeon crawlers hand crafted in C++.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
raycaster/maze.hpp

20 lines
546 B

#pragma once
#include "matrix.hpp"
#include "map.hpp"
namespace maze {
void init(Matrix& maze);
void hunt_and_kill(Matrix& maze, std::vector<Room>& rooms, std::vector<Point>& dead_ends);
void randomize_rooms(std::vector<Room>& rooms_out, std::vector<Point>& maybe_here);
void inner_donut(Matrix& maze, float outer_rad, float inner_rad);
void inner_box(Matrix& map, size_t outer_size, size_t inner_size);
void divide(Matrix& maze, Point start, Point end);
void remove_dead_ends(Matrix& maze, std::vector<Point>& dead_ends);
}