ebitencanvas

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadSpriteFile added in v0.1.0

func LoadSpriteFile(path string) (image.Image, error)

func NewSprite added in v0.1.0

func NewSprite() *spriteToDraw

func StartEbitenTurtleCanvas

func StartEbitenTurtleCanvas(params CanvasParams, drawFunc func(models.Canvas))

The drawFunc will be started as a go routine.

func TestEbitenTurtleCanvas added in v0.1.0

func TestEbitenTurtleCanvas(t *testing.T)

Types

type CanvasParams

type CanvasParams struct {
	Width   int
	Height  int
	ShowFPS bool
}

type SavedControlState

type SavedControlState struct {
	// contains filtered or unexported fields
}

func (*SavedControlState) GetUserInput

func (s *SavedControlState) GetUserInput() *models.UserInput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL