etk

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 7 Imported by: 0

README

Ebiten Toolkit

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultScene

type DefaultScene struct {
	Craft craft.Craft
}

func (DefaultScene) Draw

func (s DefaultScene) Draw(screen *ebiten.Image)

func (DefaultScene) Init

func (DefaultScene) Init()

func (DefaultScene) Layout

func (DefaultScene) Layout(outsideWidth, outsideHeight int) (int, int)

func (DefaultScene) Next

func (DefaultScene) Next() bool

func (DefaultScene) Previous added in v0.1.1

func (DefaultScene) Previous() bool

func (DefaultScene) Update

func (DefaultScene) Update() error

type Game

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

func New

func New(width, height int, scene Scene, scenes ...Scene) *Game

func (*Game) Debug

func (g *Game) Debug() *Game

func (*Game) Draw

func (g *Game) Draw(screen *ebiten.Image)

func (*Game) Layout

func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int)

func (*Game) Update

func (g *Game) Update() error

type Scene

type Scene interface {
	ebiten.Game
	Init()
	Next() bool
	Previous() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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