Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wolverian/cmaze
- Owner: wolverian
- License: isc
- Created: 2015-01-13T19:44:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-24T17:19:46.000Z (almost 10 years ago)
- Last Synced: 2025-01-20T00:49:48.580Z (1 day ago)
- Language: C
- Homepage:
- Size: 383 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.