components

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package components contains the components already defined

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

type MusicDef struct {
	Data interface{}
}

MusicDef defines a music stream

type SoundDef

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

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
	Properties map[uint32]map[string]string // Properties are properties per each global block id
}

TiledMapDef defines a tiled map

Directories

Path Synopsis
Package animation are the components for running and sprite.Sprite animations
Package animation are the components for running and sprite.Sprite animations
Package audio are the components for audio and music
Package audio are the components for audio and music
Package color handles Color components
Package color handles Color components
Package device include device related types
Package device include device related types
Package effects include different components for adding effects
Package effects include different components for adding effects
Package geometry handle components with geometry concepts
Package geometry handle components with geometry concepts
Package shapes contains various drawable shapes
Package shapes contains various drawable shapes
Package sprite handle the Sprite component
Package sprite handle the Sprite component
Package tiled has the components for adding tiled maps to our game
Package tiled has the components for adding tiled maps to our game
Package ui contains the components for displaying ui elements
Package ui contains the components for displaying ui elements

Jump to

Keyboard shortcuts

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