Documentation ¶
Overview ¶
Package gogame is a simple tui game-engine powered by go
It features a variety of functions to manage a 2D matrix, where each character is represented by a cell
Index ¶
- func ReadInput(text string) rune
- type Cell
- type Game
- func (g Game) AddCell(pos Vector, content rune)
- func (g Game) AddRow(row string, y int)
- func (g Game) FindCell(content rune) Vector
- func (g Game) GetCell(y int, x int) string
- func (g Game) MoveCell(cell Cell, moveTo Vector) (Game, Cell)
- func (g Game) Render()
- func (g Game) SaveGame(path string, key []byte)
- type Vector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
Game is a struct containing Level Data
func (Game) FindCell ¶ added in v1.1.1
FindCell allows you to find out a Cells Vector, using its Content, it will always return the first result
func (Game) GetCell ¶ added in v1.1.1
GetCell let you read the Content of a Cell at a specific location on the grid
Source Files ¶
Click to show internal directories.
Click to hide internal directories.