animation

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animation

type Animation struct {
	Name      string
	IsLooping bool
	Frames    *[]AnimationFrame
}

func NewAnimation

func NewAnimation(name string, isLooping bool, frames *[]AnimationFrame) *Animation

type AnimationFrame

type AnimationFrame struct {
	Duration int
	Rect     sdl.Rect
}

func NewAnimationFrame

func NewAnimationFrame(x, y, w, h, duration int) AnimationFrame

Jump to

Keyboard shortcuts

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