sprite

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Overview

Package sprite handle the Sprite component

Index

Constants

This section is empty.

Variables

TYPE is the reflect.Type of the Sprite

Functions

This section is empty.

Types

type Sprite

type Sprite struct {
	Sheet    string  // Sheet is the Sprite sheet
	Name     string  // Name is the Sprite name
	Rotation float32 // Rotation is the Sprite rotation
	Scale    float32 // Scale is the Sprite scale
	FlipX    bool    // FlipX indicates if the Sprite is flipped in the X-Assis
	FlipY    bool    // FlipY indicates if the Sprite is flipped in the Y-Assis
}

Sprite is a graphic image that will drawn on the screen

func Get

func Get(e *goecs.Entity) Sprite

Get gets a Sprite from a goecs.Entity

Jump to

Keyboard shortcuts

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