Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wolverian/cmaze

Learning C by writing a dungeon generator
https://github.com/wolverian/cmaze

Last synced: about 14 hours ago
JSON representation

Learning C by writing a dungeon generator

Awesome Lists containing this project

README

        

# maze

Learning C.

## Usage

% maze/maze 51 15
###################################################
#####.................#############################
#####.##############..#############################
###...............###.....###############.........#
###.######..####..#######.###############.........#
###..############.....###.###############.........#
####.################.###.###############.........#
###...............###.#...###############.........#
###...............###.#.#################.........#
###...............###.#...............###.........#
###...............###..####...#####...####.########
###...............###.....###############..########
###...............#####...###############.#########
###...............#######.................#########
###################################################

## Build

./build

## Description

Based on .

## Progress

### Features

- [x] Carve rooms.
- [x] Join corridors/rooms.
- [x] Join regions.
- [x] Prune corridors.
- [x] Keep joining regions until there is only one region left.
- [ ] Rationalize parameters. Take dungeon size into account?

### Infrastructure

- [ ] Use native functions on OpenBSD.
- [ ] Run tests on Darwin too.
- [ ] abort() if malloc fails.
- [ ] Use arrays of inline objects instead of arrays of pointers.

## License

maze is available under the ISC license. See the LICENSE file for more information.