flow

package
v0.0.0-...-16767da Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrExit = errors.New("exiting gracefully")
)

Functions

This section is empty.

Types

type Flow

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

type Flow is responsible for wiring up UI elements to each other and ensuring they behave as expected. This includes forward / back buttons to switch between screens, loading and saving options, launching a scenario, etc

func New

func New(assets *assetstore.AssetStore, config *config.Config, ship *ship.Ship) (*Flow, error)

func (*Flow) Cursor

func (f *Flow) Cursor() (*ebiten.Image, *ebiten.DrawImageOptions, error)

func (*Flow) Draw

func (f *Flow) Draw(screen *ebiten.Image) error

func (*Flow) SetScenario

func (f *Flow) SetScenario(scenario *scenario.Scenario)

func (*Flow) Update

func (f *Flow) Update(screenX, screenY int) error

Jump to

Keyboard shortcuts

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