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
Click to show internal directories.
Click to hide internal directories.