sprite

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SaveTable

type SaveTable struct {
	Rows []SaveTableRow
}

SaveTable describes a save table used in sprites

type SaveTableRow

type SaveTableRow struct {
	X int // x position
	Y int // y position
	C int // colour
}

saveTableRow describes a row in the SaveTable type

type Sprite

type Sprite struct {
	HighResolution bool      // Set to true if the sprite is intended for high-resolution mode.
	Hotspot        [2]int    // The x, y vector from the bottom-left of the sprite to the hotspot.
	Poses          [][][]int // The sprite images stored as 2D arrays in individual poses.  Up to 2 poses allowed in low-resolution mode, up to 4 in high-resolution mode.
}

Sprite represents (as much as is practical) Nimbus sprite data.

Jump to

Keyboard shortcuts

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