Documentation ¶
Index ¶
Constants ¶
View Source
const ScreenHeight = 720
View Source
const ScreenWidth = 1280
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
Game is a labyrinth game.
type KeyboardWrapper ¶
type KeyboardWrapper struct {
// contains filtered or unexported fields
}
func NewKeyboardWrapper ¶
func NewKeyboardWrapper() *KeyboardWrapper
func (*KeyboardWrapper) IsKeyPressed ¶
func (kw *KeyboardWrapper) IsKeyPressed(key ebiten.Key) bool
func (*KeyboardWrapper) LastKeysPushed ¶
func (kw *KeyboardWrapper) LastKeysPushed() []ebiten.Key
LastKeysPushed returns all keys that were pushed useful if you don't know what the user input might be for changing the key bindings. Careful using this looping through a map is slow
func (*KeyboardWrapper) Parse ¶
func (kw *KeyboardWrapper) Parse(id string) (ebiten.Key, error)
Parse converts a string version of a key to a ebiten.Key
func (*KeyboardWrapper) Update ¶
func (kw *KeyboardWrapper) Update()
type Stationary ¶
func (*Stationary) Draw ¶
func (s *Stationary) Draw(screen *ebiten.Image)
func (*Stationary) Dst ¶
func (s *Stationary) Dst(i int) (x0, y0, x1, y1 int)
func (*Stationary) Len ¶
func (s *Stationary) Len() int
func (*Stationary) Src ¶
func (s *Stationary) Src(i int) (x0, y0, x1, y1 int)
Click to show internal directories.
Click to hide internal directories.