subjects

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package subjects represents of set of properties needed for the different components to interact with the game loop, not needing a concrete knowledge of the underlying type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animateable

type Animateable interface {
	Originer
	Scale() (float64, float64)
	IsHorizontalFlipped() bool
	IsVerticalFlipped() bool
	DrawOffset() (float64, float64)
}

Animateable is used for animating sets of images. These methods help work through the different sizes and directions that the entity and images may take.

type Originer

type Originer interface {
	At() vector.MutableVector
}

Originer is to identify the origin point of an entity

Jump to

Keyboard shortcuts

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