intro

package
v0.0.0-...-4bf0284 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SceneTitleGraphics       Scene = 2
	SceneMarching            Scene = 3
	SceneEvilWizardIntro           = 4
	SceneGoodWizardWalk            = 5
	SceneGoodWizardIntro           = 6
	SceneWorkMustStop              = 7
	SceneLightningHitsTower        = 8
	SceneGoodWizardCast            = 9
	SceneLightningHitsShield       = 10

	SceneEvilScream = 11
)
View Source
const DefaultAnimationSpeed = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type Intro

type Intro struct {
	Counter        uint64
	CurrentScene   Scene
	MaxScene       Scene
	Scene          *util.Animation
	CurrentIndex   int
	ImageCache     util.ImageCache
	LbxCache       *lbx.LbxCache
	AnimationSpeed uint64
}

func MakeIntro

func MakeIntro(lbxCache *lbx.LbxCache, animationSpeed uint64) (*Intro, error)

func (*Intro) Draw

func (intro *Intro) Draw(screen *ebiten.Image)

func (*Intro) Update

func (intro *Intro) Update() IntroState

type IntroState

type IntroState int
const (
	IntroStateRunning IntroState = iota
	IntroStateDone
)

type Scene

type Scene int

Jump to

Keyboard shortcuts

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