Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Direction ¶
type Direction string
const ( DirectionUp Direction = "up" DirectionDown Direction = "down" DirectionLeft Direction = "left" DirectionRight Direction = "right" DirectionDownRight Direction = "downright" DirectionDownLeft Direction = "downleft" DirectionUpLeft Direction = "upleft" DirectionUpRight Direction = "upright" NoDirection Direction = "none" )
type LevelManager ¶
type LevelManager struct {
// contains filtered or unexported fields
}
A LevelManager manages the multiple levels in a game world, and simplifies the transitions between them.
func NewLevelManager ¶
func NewLevelManager(levelFilePath string, seed int64) *LevelManager
NewLevelManager initializes & returns a new level manager.
func (*LevelManager) AddLevel ¶
func (m *LevelManager) AddLevel(name string, template LevelTemplate) Map
AddLevel adds a new level to the manager.
type LevelTemplate ¶
A LevelTemplate implements logic for generating a single level (or "floor").
Click to show internal directories.
Click to hide internal directories.