go-dungeon

command module
v0.0.0-...-1d1d1e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2016 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go Dungeon

This is a simple dungeon generator built in go

To use it, simply import "github.com/meshiest/go-dungeon/dungeon" and go get

To generate a dungeon, use: dungeon := dungeon.NewDungeon(size int, numRooms int) to generate a square dungeon with size side length and numRooms rooms

To preview a dungeon, you can dungeon.Print(), which will demo the dungeon using '#' to denote floor and ' ' to denote wall

To access the grid of a generated dungeon, you can use the [][]int dungeon.Grid where 1 denotes floor and 0 denotes wall

Check out main.go for an example! (go run main.go)

Here is a 100x100 with an attempted 200 rooms:

Here is a 50x50 with an attempted 200 rooms rendered with opengl:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL