Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AssetBody *ebiten.Image
View Source
var AssetCherry *ebiten.Image
View Source
var AssetHead *ebiten.Image
View Source
var AssetTail *ebiten.Image
Functions ¶
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
Board The board is a simple rectangle in which the snake will evolve
type Cherry ¶
type Cherry struct {
X, Y int // X & Y position in the grid
// contains filtered or unexported fields
}
type GameOver ¶
type GameOver struct {
// contains filtered or unexported fields
}
func NewGameOver ¶
func (*GameOver) UpdateKeys ¶
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
func (*Menu) UpdateKeys ¶
type Part ¶
type Part struct {
X, Y int // X & Y position in the grid
// contains filtered or unexported fields
}
type Snake ¶
type Snake struct {
// contains filtered or unexported fields
}
func (*Snake) ApplyDirection ¶
func (s *Snake) ApplyDirection(keys []ebiten.Key)
func (*Snake) UpdateKeys ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.