battle

package
v0.0.0-...-96a477f Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Victory bool

	Difficulty      int
	Health          float64
	DodgePoints     float64
	PressurePenalty float64
	TimePlayed      time.Duration
}

type Runner

type Runner struct {
	EventBattleOver gsignal.Event[Result]
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(config RunnerConfig) *Runner

func (*Runner) Init

func (r *Runner) Init(scene *ge.Scene)

func (*Runner) Update

func (r *Runner) Update(delta float64)

type RunnerConfig

type RunnerConfig struct {
	LevelID        int
	SectorSize     gmath.Vec
	SectorTextures []*ebiten.Image
	Music          *gamedata.MusicInfo
	Session        *session.State
	Stage          *viewport.Stage
}

Jump to

Keyboard shortcuts

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