internal

package
v0.0.0-...-640e49b Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeColorGrid

func MakeColorGrid(size int, ldtkMap []*ldtkgo.Integer) [][]color.Color

func MakeSoilGrid

func MakeSoilGrid(size int, ldtkMap []*ldtkgo.Integer) (hum [][]mgl32.Vec2, rocks, rain [][]bool)

Types

type Board

type Board[V any] interface {
	ebiten.Game
	Size() (int, int)
	Reset() error
	Setup(m [][]V)
	Click(btn ebiten.MouseButton)
	Hover(x, y int)
}

type Config

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

func NewConf

func NewConf() Config

type SimulationScene

type SimulationScene struct {
	Board   *boards.HumidityBoard
	Preview Board[color.Color]
	// contains filtered or unexported fields
}

func (*SimulationScene) Draw

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

func (*SimulationScene) Layout

func (s *SimulationScene) Layout(outsideWidth, outsideHeight int) (int, int)

func (*SimulationScene) Load

func (s *SimulationScene) Load(state State, manager *stagehand.SceneManager[State])

func (*SimulationScene) Unload

func (s *SimulationScene) Unload() State

func (*SimulationScene) Update

func (s *SimulationScene) Update() error

type State

type State struct {
	Levels []*ldtkgo.Level

	Config Config
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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