act

package
v0.0.0-...-90da1f4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderSignature = "AC"

	ActionDefaultDelay = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Frames               []*ActionFrame
	Delay                uint32
	DurationMilliseconds uint32
}

type ActionFile

type ActionFile struct {
	Header struct {
		Signature string
		Version   float32
	}

	ActionCount uint16
	Actions     []*Action

	Sounds []string
}

func Load

func Load(data []byte) (*ActionFile, error)

type ActionFrame

type ActionFrame struct {
	Layers    []*ActionFrameLayer
	Sound     int32
	Positions [][2]int32
}

type ActionFrameLayer

type ActionFrameLayer struct {
	Index            int32
	Position         [2]int32
	SpriteFrameIndex int32
	Mirrored         bool
	Scale            [2]float32
	Color            *color.RGBA
	Angle            int32
	SpriteType       int32
	Width            int32
	Height           int32
}

Jump to

Keyboard shortcuts

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