play

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scene

type Scene struct {
	*scene.Config
	*scene.Asset

	mode.ScenePlay

	// KeyHandleXxx looks slightly better than HandleXxxByKey.
	KeyHandleMusicVolume          func() bool
	KeyHandleSoundVolume          func() bool
	KeyHandleMusicOffset          func() bool
	KeyHandleBackgroundBrightness func() bool
	KeyHandleDebugPrint           func() bool
	KeyHandleSpeedScale           func() bool
	// contains filtered or unexported fields
}

ScenePlay: struct, PlayScene: function Interface declares at 'user' package.

func NewScene

func NewScene(cfg *scene.Config, asset *scene.Asset, fsys fs.FS, name string, replay *osr.Format) (s *Scene, err error)

func (Scene) Draw

func (s Scene) Draw(screen draws.Image)

func (*Scene) Update

func (s *Scene) Update() any

Changing speed might not be applied after positions are calculated. But this is not tested.

Jump to

Keyboard shortcuts

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