package
Version:
v0.0.0-...-8520766
Opens a new window with list of versions in this module.
Published: Sep 21, 2022
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func DrawBoard(screen *ebiten.Image, board *game.Board)
Dir represents a direction.
const (
DirUp Dir = iota
DirRight
DirDown
DirLeft
)
String returns a string representing the direction.
func (d Dir) Vector() (x, y int)
Vector returns a [-1, 1] value for each axis.
func (g *Game) Draw(screen *ebiten.Image)
func (g *Game) Initialize()
func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
Input represents the current key states.
NewInput generates a new Input object.
Dir returns a currently pressed direction.
Dir returns false if no direction key is pressed.
Update updates the current input states.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.