components

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FontDef

type FontDef struct {
	Data interface{} // Data is the font data
}

FontDef defines a font

type MusicDef added in v0.1.2

type MusicDef struct {
	Data interface{}
}

MusicDef defines a music stream

type SoundDef added in v0.1.2

type SoundDef struct {
	Data interface{}
}

SoundDef defines a sound wave

type SpriteDef

type SpriteDef struct {
	Texture TextureDef     // Texture is the TextureDef
	Origin  geometry.Rect  // Origin is where the sprite is on the texture
	Pivot   geometry.Point // Pivot is the relative pivot 0..1 in each axis
}

SpriteDef defines an sprite.Sprite

type TextureDef

type TextureDef struct {
	Data interface{}   // Data is the texture data
	Size geometry.Size // Size is the texture size
}

TextureDef defines a texture

type TiledMapDef added in v0.1.3

type TiledMapDef struct {
	Data     *tiled.Map    // Data is the internal map data
	Cols     int32         // Cols is the number of cols in the map
	Rows     int32         // Rows is the number of rows in the map
	Size     geometry.Size // Size is the map size in pixels
	TileSize geometry.Size // TileSize is the size per each tile in pixels
}

TiledMapDef defines a tiled map

Jump to

Keyboard shortcuts

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