movies

package
v0.0.0-...-8fb4b22 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Movie

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

Movie is a set of scenes

func FromJSON

func FromJSON(spriteMap sprites.SpriteMap, data string, parameters map[string]interface{}) (*Movie, error)

FromJSON creates a new movie from JSON

func New

func New() *Movie

New creates a new movie

func (*Movie) Add

func (m *Movie) Add(scene *scenes.Scene)

Add adds a scene to the movie

func (*Movie) Draw

func (m *Movie) Draw(screen *ebiten.Image)

Draw draws the movie

func (*Movie) GetClip

func (m *Movie) GetClip(scene, layer, clip string) (*clips.Clip, error)

GetClip gets a clip from the movie

func (*Movie) GetClips

func (m *Movie) GetClips(scene, layer, clip string) ([]*clips.Clip, error)

GetClips gets a series of clips from the movie

func (*Movie) Update

func (m *Movie) Update() (err error)

Update updates the movie

Jump to

Keyboard shortcuts

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