Discover Packages
github.com/runozo/go-tanks
assets
package
Version:
v0.0.0-...-1151b5d
Opens a new window with list of versions in this module.
Published: Mar 28, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Assets struct {
SpriteSheet *ebiten.Image
SpriteSheetXMLMap SpriteMap
}
func (a *Assets ) GetRandomTankBarrell() *ebiten.Image
func (a *Assets ) GetRandomTankBody() *ebiten.Image
type SpriteMap struct {
XMLName xml .Name `xml:"TextureAtlas"`
ImagePath string `xml:"imagePath,attr"`
SubTextures []SubTexture `xml:"SubTexture"`
}
type SubTexture struct {
XMLName xml .Name `xml:"SubTexture"`
Name string `xml:"name,attr"`
X int `xml:"x,attr"`
Y int `xml:"y,attr"`
Width int `xml:"width,attr"`
Height int `xml:"height,attr"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.