Documentation ¶
Index ¶
- Constants
- Variables
- func CopyLayout(lin [][]int) [][]int
- type Gameplay
- func (g *Gameplay) Change() int
- func (g *Gameplay) Draw(screen *ebiten.Image)
- func (g *Gameplay) FindInLayout(value int) [][]int
- func (g *Gameplay) FindPassage()
- func (g *Gameplay) Init()
- func (g *Gameplay) PosInLayoutBounds(pos *vector.Vector2D) bool
- func (g *Gameplay) RestartCurrentLevel()
- func (g *Gameplay) ReverseCurrentChar()
- func (g *Gameplay) TraversePathFrom(pos *vector.Vector2D) bool
- func (g *Gameplay) Update()
- type Howto
- type Menu
- type State
- type Win
Constants ¶
View Source
const ( START = iota HOWTO QUIT )
View Source
const ( STATE_MENU = iota STATE_GAME STATE_HOWTO STATE_WIN )
Variables ¶
View Source
var MenuOptions = []string{
"Start",
"HowTo",
"Quit",
}
Functions ¶
func CopyLayout ¶
Types ¶
type Gameplay ¶
func (*Gameplay) FindInLayout ¶
func (*Gameplay) FindPassage ¶
func (g *Gameplay) FindPassage()
func (*Gameplay) PosInLayoutBounds ¶
func (*Gameplay) RestartCurrentLevel ¶
func (g *Gameplay) RestartCurrentLevel()
func (*Gameplay) ReverseCurrentChar ¶
func (g *Gameplay) ReverseCurrentChar()
Click to show internal directories.
Click to hide internal directories.