scene

package
v0.0.0-...-f24390b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package scene implements the scenes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func NewMainMenuScene

func NewMainMenuScene(ctx *context.Context) *MainMenuScene
func (s *MainMenuScene) Close() error
func (s *MainMenuScene) Draw(screen *ebiten.Image)
func (s *MainMenuScene) Init() error
func (s *MainMenuScene) Update(dt float64) error

type NopScene

type NopScene struct{}

func (*NopScene) Close

func (s *NopScene) Close() error

func (*NopScene) Draw

func (s *NopScene) Draw(_ *ebiten.Image)

func (*NopScene) Init

func (s *NopScene) Init() error

func (*NopScene) Update

func (s *NopScene) Update(_ float64) error

type OptionsScene

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

func NewOptionsScene

func NewOptionsScene(ctx *context.Context) *OptionsScene

func (*OptionsScene) Close

func (s *OptionsScene) Close() error

func (*OptionsScene) Draw

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

func (*OptionsScene) Init

func (s *OptionsScene) Init() error

func (*OptionsScene) Update

func (s *OptionsScene) Update(_ float64) error

type TitleScene

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

TitleScene is the intro and "press enter to begin" screen.

func NewTitleScene

func NewTitleScene(ctx *context.Context) *TitleScene

func (*TitleScene) Close

func (s *TitleScene) Close() error

func (*TitleScene) Draw

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

func (*TitleScene) Init

func (s *TitleScene) Init() error

func (*TitleScene) Update

func (s *TitleScene) Update(dt float64) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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