|
| 1 | +# MAPTOOL |
| 2 | + |
| 3 | +Maptool is a small tool to generate nethack-style ASCII dungeons. |
| 4 | +It is a WIP at the moment so expect breaking changes and bugs. |
| 5 | + |
| 6 | +**LICENSE:** MIT see [LICENSE](https://github.com/dragonchaser/maptool/blob/master/LICENSE) file in this repository. |
| 7 | + |
| 8 | +## usage |
| 9 | + |
| 10 | +``` |
| 11 | +Usage: ./maptool.rb [options] |
| 12 | + -r, --rows=ROWS Dungeon rows (default: 10) |
| 13 | + -c, --cols=COLS Dungeon cols (default: 10) |
| 14 | + -e, --empty=PROBABILTY Probablility of creating an empty tile (default: 0.02) |
| 15 | + -p, --precision=PRECISION Precision used for calculationg weighted probablities with -e (default: 2, will resort to defaults if <2 || > 14) |
| 16 | + -b, --border Print tile border (default: false) |
| 17 | + -v, --verbose Verbose mode |
| 18 | + -V, --superverbose Super verbose mode |
| 19 | + -h, --help Prints this help |
| 20 | +``` |
| 21 | + |
| 22 | +## examples |
| 23 | + |
| 24 | +### with border |
| 25 | + |
| 26 | +``` |
| 27 | +....................................... |
| 28 | +. . . |~~| . |
| 29 | +. . . +--+~~+--+ . |
| 30 | +. . . |~~~~~~~~| . |
| 31 | +. +-------.------------.-+~~~~~~~~+-. |
| 32 | +. |~~~~~~~.~~~~~~~~~~~~.~~~~~~~~~~~~. |
| 33 | +. |~~~~~~~.~~~~~~~~~~~~.~~~~~~~~~~~~. |
| 34 | +. |~~+----.------------.-+~~~~~~~~+-. |
| 35 | +. |~~| . . |~~~~~~~~| . |
| 36 | +. |~~| . . +--+~~+--+ . |
| 37 | +. |~~| . . |~~| . |
| 38 | +........................................ |
| 39 | +. |~~| . . |~~| . |
| 40 | +. |~~| . . |~~| . |
| 41 | +. |~~| . . |~~| . |
| 42 | +.----+~~+----.------------.----+~~+----. |
| 43 | +.~~~~~~~~~~~~.~~~~~~~~~~~~.~~~~~~~~~~~~. |
| 44 | +.~~~~~~~~~~~~.~~~~~~~~~~~~.~~~~~~~~~~~~. |
| 45 | +.----+~~+----.----+~~+----.----+~~+----. |
| 46 | +. |~~| . |~~| . |~~| . |
| 47 | +. |~~| . |~~| . |~~| . |
| 48 | +. |~~| . |~~| . |~~| . |
| 49 | +........................................ |
| 50 | +. |~~| . |~~| . |~~| . |
| 51 | +. |~~| . |~~| . |~~| . |
| 52 | +. |~~| . |~~| . |~~| . |
| 53 | +. |~~| . |~~| . |~~| . |
| 54 | +. |~~| . |~~| . |~~| . |
| 55 | +. |~~| . |~~| . |~~| . |
| 56 | +. |~~| . |~~| . |~~| . |
| 57 | +. |~~| . |~~| . |~~| . |
| 58 | +. |~~| . |~~| . |~~| . |
| 59 | +. |~~| . |~~| . |~~| . |
| 60 | +........................................ |
| 61 | +``` |
| 62 | + |
| 63 | +### without border |
| 64 | + |
| 65 | +``` |
| 66 | +------------ ------------ |
| 67 | +~~~~~~~~~~~~ ~~~~~~~~~~~~ |
| 68 | +~~~~~~~~~~~~ ~~~~~~~~~~~~ |
| 69 | +----+~~+---- ----+~~+---- |
| 70 | + |~~| |~~| |
| 71 | + |~~| |~~| |
| 72 | + |~~| |~~| |
| 73 | + |~~| |~~| |~~| |
| 74 | + |~~| +--+~~+--+ +--+~~+--+ |
| 75 | + |~~| |~~~~~~~~| |~~~~~~~~| |
| 76 | +----+~~+-----+~~~~~~~~+--+~~~~~~~~+- |
| 77 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 78 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 79 | +----+~~+-----+~~~~~~~~+--+~~~~~~~~+- |
| 80 | + |~~| |~~~~~~~~| |~~~~~~~~| |
| 81 | + |~~| +--+~~+--+ +--+~~+--+ |
| 82 | + |~~| |~~| |~~| |
| 83 | + |~~| |~~| |~~| |
| 84 | + +--+~~+--+ |~~| |~~| |
| 85 | + |~~~~~~~~| |~~| |~~| |
| 86 | +-+~~~~~~~~+-----+~~+--------+~~+---- |
| 87 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 88 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 89 | +-+~~~~~~~~+-----+~~+--------+~~+---- |
| 90 | + |~~~~~~~~| |~~| |~~| |
| 91 | + +--+~~+--+ |~~| |~~| |
| 92 | + |~~| |~~| |~~| |
| 93 | +``` |
0 commit comments