Skip to content
/ astray Public
forked from SiENcE/astray

Astray is a lua based maze, room and dungeon generation library for dungeon crawlers and rougelike video games

License

Notifications You must be signed in to change notification settings

sue602/astray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astray

Astray is a lua based maze, room and dungeon generation library for dungeon crawlers and rougelike video games.

Quick Look

local astray = require('astray')

local generator = astray.Astray:new( 25, 25, 30, 70, 80, astray.RoomGenerator:new(8, 3, 6, 3, 6) )

local dungeon = generator:Generate()

local tiles = generator:CellToTiles( dungeon )

for y = 0, #tiles[1] do
    local line = ''
	for x = 0, #tiles do
		line = line .. tiles[x][y]
	end
	print(line)
end

Documentation

See the github wiki page for examples & documentation.

Installation

Just copy the astray folder wherever you want it (for example on a lib/ folder). Then write this in any Lua file where you want to use it:

local astray = require('lib/astray')

Specs

This work mainly based on the following ideas:

Copyright

Copyright (c) <''2014''> <''Florian Fischer''>

License

Astray is distributed under the zlib/libpng License (http://opensource.org/licenses/Zlib)

About

Astray is a lua based maze, room and dungeon generation library for dungeon crawlers and rougelike video games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%