library

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConstAssetNpc26x36Villagerfyb   = "villager_fyb"
	ConstAssetNpc26x36Yeti          = "yeti"
	ConstAssetNpc26x36Villagerfbb   = "villager_fbb"
	ConstAssetNpc26x36Villagermgb   = "villager_mgb"
	ConstAssetNpc26x36Villagermbb   = "villager_mbb"
	ConstAssetNpc26x36Villagermbbl  = "villager_mbbl"
	ConstAssetNpc26x36Villagerfpb   = "villager_fpb"
	ConstAssetNpc26x36Villagerfpr   = "villager_fpr"
	ConstAssetNpc26x36Ghost         = "ghost"
	ConstAssetNpc26x36Mummy         = "mummy"
	ConstAssetNpc26x36Sasquatch     = "sasquatch"
	ConstAssetNpc26x36Knuckles      = "knuckles"
	ConstAssetNpc26x36Villagerfrb   = "villager_frb"
	ConstAssetPlayerLayer1          = "layer 1"
	ConstAssetPlayerBase            = "base"
	ConstAssetSpellBite             = "bite"
	ConstAssetSpellBite2            = "bite2"
	ConstAssetSpellClaw             = "claw"
	ConstAssetSpellCircle           = "circle"
	ConstAssetSpellSparkle          = "sparkle"
	ConstAssetSpellLines            = "lines"
	ConstAssetSpellBeam             = "beam"
	ConstAssetSpellSparkle2         = "sparkle2"
	ConstAssetButtonPressed         = "pressed"
	ConstAssetButtonIdle            = "idle"
	ConstAssetButtonHover           = "hover"
	ConstAssetItemLeafgoldtriple    = "leaf_gold_triple"
	ConstAssetItemBowboltsilver     = "bow_bolt_silver"
	ConstAssetItemOnion             = "onion"
	ConstAssetItemFeathergrey       = "feather_grey"
	ConstAssetItemAcorn             = "acorn"
	ConstAssetItemTrumpet           = "trumpet"
	ConstAssetItemSwordlong         = "sword_long"
	ConstAssetItemShieldcrestwhite  = "shield_crest_white"
	ConstAssetItemRake              = "rake"
	ConstAssetItemGolddouble        = "gold_double"
	ConstAssetItemChestsilver       = "chest_silver"
	ConstAssetItemRodred            = "rod_red"
	ConstAssetItemTornado           = "tornado"
	ConstAssetItemBowcrosssilver    = "bow_cross_silver"
	ConstAssetItemBomb              = "bomb"
	ConstAssetItemSwordpurple       = "sword_purple"
	ConstAssetItemHerbgreen         = "herb_green"
	ConstAssetItemGunmagnumammo     = "gun_magnum_ammo"
	ConstAssetItemBloodtriple       = "blood_triple"
	ConstAssetItemLeafoak           = "leaf_oak"
	ConstAssetItemSwordsmall        = "sword_small"
	ConstAssetItemSwordfire         = "sword_fire"
	ConstAssetItemBagmediumgold     = "bag_medium_gold"
	ConstAssetItemStartriple        = "star_triple"
	ConstAssetItemRodmoon           = "rod_moon"
	ConstAssetItemDaggerthin        = "dagger_thin"
	ConstAssetItemHerblightgreen    = "herb_lightgreen"
	ConstAssetItemDynamitequadruple = "dynamite_quadruple"
	ConstAssetItemSkull             = "skull"
	ConstAssetItemGoldtriple        = "gold_triple"
	ConstAssetItemCheesewedge       = "cheese_wedge"
	ConstAssetItemCookie            = "cookie"
	ConstAssetItemScrollunwrapped   = "scroll_unwrapped"
	ConstAssetItemRope              = "rope"
	ConstAssetItemBowteal           = "bow_teal"
	ConstAssetItemEggplant          = "eggplant"
	ConstAssetItemAxetomahawk       = "axe_tomahawk"
	ConstAssetItemWhipnunchucku     = "whip_nunchucku"
	ConstAssetItemGunpistolammo     = "gun_pistol_ammo"
	ConstAssetItemGunmagnum         = "gun_magnum"
	ConstAssetItemVialthinred       = "vial_thin_red"
	ConstAssetItemAxefull           = "axe_full"
	ConstAssetItemDrumstick         = "drumstick"
	ConstAssetItemSwordgoldhilt     = "sword_gold_hilt"
	ConstAssetItemAxebasic          = "axe_basic"
	ConstAssetItemFlutesilver       = "flute_silver"
	ConstAssetItemFeatherblue       = "feather_blue"
	ConstAssetItemNecklacediamond   = "necklace_diamond"
	ConstAssetItemRinggoldpop       = "ring_gold_pop"
	ConstAssetItemAxedouble         = "axe_double"
	ConstAssetItemPotato            = "potato"
	ConstAssetItemGunshotgunammo    = "gun_shotgun_ammo"
	ConstAssetItemHood              = "hood"
	ConstAssetItemBandana           = "bandana"
	ConstAssetItemBookpen           = "book_pen"
	ConstAssetItemBowcrossgold      = "bow_cross_gold"
	ConstAssetItemSpearsickle       = "spear_sickle"
	ConstAssetItemLamp              = "lamp"
	ConstAssetItemDaggerbone        = "dagger_bone"
	ConstAssetItemApplegold         = "apple_gold"
	ConstAssetItemFlute             = "flute"
	ConstAssetItemFlameblue         = "flame_blue"
	ConstAssetItemFlower            = "flower"
	ConstAssetItemGold              = "gold"
	ConstAssetItemSpearscythe       = "spear_scythe"
	ConstAssetItemVialmediumred     = "vial_medium_red"
	ConstAssetItemBookopen          = "book_open"
	ConstAssetItemGunshotgun        = "gun_shotgun"
	ConstAssetItemRodspiked         = "rod_spiked"
	ConstAssetItemShell             = "shell"
	ConstAssetItemFishingblue       = "fishing_blue"
	ConstAssetItemVikinghelmet      = "viking_helmet"
	ConstAssetItemBottlered         = "bottle_red"
	ConstAssetItemDagger            = "dagger"
	ConstAssetItemFishlargeyellow   = "fish_large_yellow"
	ConstAssetItemBell              = "bell"
	ConstAssetItemAnchor            = "anchor"
	ConstAssetItemSwordbroadice     = "sword_broad_ice"
	ConstAssetItemShieldkite        = "shield_kite"
	ConstAssetItemShieldround       = "shield_round"
	ConstAssetItemBooksimon         = "book_simon"
	ConstAssetItemLute              = "lute"
	ConstAssetItemBowboltpurple     = "bow_bolt_purple"
	ConstAssetItemGrapegreen        = "grape_green"
	ConstAssetItemScrollwrapped     = "scroll_wrapped"
	ConstAssetItemShieldmirrorred   = "shield_mirror_red"
	ConstAssetItemGoldkey           = "gold_key"
	ConstAssetItemCorn              = "corn"
	ConstAssetItemAxehalf           = "axe_half"
	ConstAssetItemPot               = "pot"
	ConstAssetItemShovel            = "shovel"
	ConstAssetItemBowboltgold       = "bow_bolt_gold"
	ConstAssetItemRingsilver        = "ring_silver"
	ConstAssetItemSpearpike         = "spear_pike"
	ConstAssetItemApplegreen        = "apple_green"
	ConstAssetItemSwordblueedge     = "sword_blue_edge"
	ConstAssetItemRodtridentorange  = "rod_trident_orange"
	ConstAssetItemBowhorned         = "bow_horned"
	ConstAssetItemChalice           = "chalice"
	ConstAssetItemEgg               = "egg"
	ConstAssetItemScwordsimple      = "scword_simple"
	ConstAssetItemShieldcrestblue   = "shield_crest_blue"
	ConstAssetItemSwordflambergblue = "sword_flamberg_blue"
	ConstAssetItemNecklaceskull     = "necklace_skull"
	ConstAssetItemBracelet          = "bracelet"
	ConstAssetItemShieldgold        = "shield_gold"
	ConstAssetItemShieldmirrorblue  = "shield_mirror_blue"
	ConstAssetItemSpearshear        = "spear_shear"
	ConstAssetItemSpearbasic        = "spear_basic"
	ConstAssetItemFeather           = "feather"
	ConstAssetItemFishingyellow     = "fishing_yellow"
	ConstAssetItemFishmediumgrey    = "fish_medium_grey"
	ConstAssetItemCarrot            = "carrot"
	ConstAssetItemAxewide           = "axe_wide"
	ConstAssetItemShieldborder      = "shield_border"
	ConstAssetItemShieldmirror      = "shield_mirror"
	ConstAssetItemSwordlongblue     = "sword_long_blue"
	ConstAssetItemAxered            = "axe_red"
	ConstAssetItemSpearforked       = "spear_forked"
	ConstAssetItemMap               = "map"
	ConstAssetItemParchment         = "parchment"
	ConstAssetItemDaggerfillet      = "dagger_fillet"
	ConstAssetItemTablet            = "tablet"
	ConstAssetItemWhipgrey          = "whip_grey"
	ConstAssetItemPotionblue        = "potion_blue"
	ConstAssetItemBowsilver         = "bow_silver"
	ConstAssetItemGoldstack         = "gold_stack"
	ConstAssetItemPie               = "pie"
	ConstAssetItemWhip              = "whip"
	ConstAssetItemWatermelon        = "watermelon"
	ConstAssetItemRodclub           = "rod_club"
	ConstAssetItemPlantred          = "plant_red"
	ConstAssetItemBagmediumsilver   = "bag_medium_silver"
	ConstAssetItemBowcross          = "bow_cross"
	ConstAssetItemBowbolt           = "bow_bolt"
	ConstAssetItemRodblueorb        = "rod_blue_orb"
	ConstAssetItemGlobechain        = "globe_chain"
	ConstAssetItemClock             = "clock"
	ConstAssetItemBread             = "bread"
	ConstAssetItemHerbteal          = "herb_teal"
	ConstAssetItemBaggold           = "bag_gold"
	ConstAssetItemHoney             = "honey"
	ConstAssetItemDynamitetriple    = "dynamite_triple"
	ConstAssetItemGunpistol         = "gun_pistol"
	ConstAssetItemShoesleather      = "shoes_leather"
	ConstAssetItemSwordscimitarblue = "sword_scimitar_blue"
	ConstAssetItemDaggerserrated    = "dagger_serrated"
	ConstAssetItemSwordscimitar     = "sword_scimitar"
	ConstAssetItemHeartblank        = "heart_blank"
	ConstAssetItemBottlesmallgreen  = "bottle_small_green"
	ConstAssetItemBowboltblue       = "bow_bolt_blue"
	ConstAssetItemPotionredround    = "potion_red_round"
	ConstAssetItemLetter            = "letter"
	ConstAssetItemRingbasic         = "ring_basic"
	ConstAssetItemBowcurved         = "bow_curved"
	ConstAssetItemGloveleather      = "glove_leather"
	ConstAssetItemGlovehole         = "glove_hole"
	ConstAssetItemStar              = "star"
	ConstAssetItemBottlepoison      = "bottle_poison"
	ConstAssetItemTamborine         = "tamborine"
	ConstAssetItemSwordfrozen       = "sword_frozen"
	ConstAssetItemPiecream          = "pie_cream"
	ConstAssetItemChestsilvernoarm  = "chest_silver_noarm"
	ConstAssetItemHelmetbasic       = "helmet_basic"
	ConstAssetItemSlingshotgold     = "slingshot_gold"
	ConstAssetItemNecklacestar      = "necklace_star"
	ConstAssetItemSpearribbon       = "spear_ribbon"
	ConstAssetItemShieldtiny        = "shield_tiny"
	ConstAssetItemFishsmallgrey     = "fish_small_grey"
	ConstAssetItemSpeardecorated    = "spear_decorated"
	ConstAssetItemBowbasic          = "bow_basic"
	ConstAssetItemBottlegold        = "bottle_gold"
	ConstAssetItemScrollwrappedblue = "scroll_wrapped_blue"
	ConstAssetItemBottlebrown       = "bottle_brown"
	ConstAssetItemBagtiny           = "bag_tiny"
	ConstAssetItemSlingshotv        = "slingshot_v"
	ConstAssetItemNecklacetooth     = "necklace_tooth"
	ConstAssetItemBagmediumleather  = "bag_medium_leather"
	ConstAssetItemGoldlarge         = "gold_large"
	ConstAssetItemBroom             = "broom"
	ConstAssetItemLantern           = "lantern"
	ConstAssetItemCheese            = "cheese"
	ConstAssetItemLettuce           = "lettuce"
	ConstAssetItemWizardhat         = "wizard_hat"
	ConstAssetItemBootssilver       = "boots_silver"
	ConstAssetItemHeart             = "heart"
	ConstAssetItemStarblank         = "star_blank"
	ConstAssetItemBowtealknob       = "bow_teal_knob"
	ConstAssetItemCandle            = "candle"
	ConstAssetItemLeafgold          = "leaf_gold"
	ConstAssetItemTrinketblue       = "trinket_blue"
	ConstAssetItemBottleblue        = "bottle_blue"
	ConstAssetItemMirror            = "mirror"
	ConstAssetItemWheat             = "wheat"
	ConstAssetItemPoisoncloudpurple = "poison_cloud_purple"
	ConstAssetItemRodbaton          = "rod_baton"
	ConstAssetItemShieldspiked      = "shield_spiked"
	ConstAssetItemMapquestion       = "map_question"
	ConstAssetItemLeaf              = "leaf"
	ConstAssetItemDrum              = "drum"
	ConstAssetItemBowfire           = "bow_fire"
	ConstAssetItemSilverkey         = "silver_key"
	ConstAssetItemRodtridentblue    = "rod_trident_blue"
	ConstAssetItemDynamite          = "dynamite"
	ConstAssetItemPotgold           = "pot_gold"
	ConstAssetItemPumpkin           = "pumpkin"
	ConstAssetItemRodwoodcane       = "rod_wood_cane"
	ConstAssetItemSnowflake         = "snowflake"
	ConstAssetItemPotbronze         = "pot_bronze"
	ConstAssetItemWhipthorn         = "whip_thorn"
	ConstAssetItemApple             = "apple"
	ConstAssetItemSwordflaming      = "sword_flaming"
	ConstAssetItemBowice            = "bow_ice"
	ConstAssetItemSword             = "sword"
	ConstAssetItemSwordflat         = "sword_flat"
	ConstAssetItemBootsleather      = "boots_leather"
	ConstAssetItemSwordthin         = "sword_thin"
	ConstAssetItemSwordbronze       = "sword_bronze"
	ConstAssetItemRinggoldgreen     = "ring_gold_green"
	ConstAssetItemVialblue          = "vial_blue"
	ConstAssetItemSwordbroad        = "sword_broad"
	ConstAssetItemBottlesmallred    = "bottle_small_red"
	ConstAssetItemBanana            = "banana"
	ConstAssetItemHerbred           = "herb_red"
	ConstAssetItemSwordrapier       = "sword_rapier"
	ConstAssetItemLightning         = "lightning"
	ConstAssetItemScythe            = "scythe"
	ConstAssetItemRaspberry         = "raspberry"
	ConstAssetItemRodflamingsceptre = "rod_flaming_sceptre"
	ConstAssetItemRinggoldblue      = "ring_gold_blue"
	ConstAssetItemNet               = "net"
	ConstAssetItemPoisoncloud       = "poison_cloud"
	ConstAssetItemDroopywizardhat   = "droopy_wizard_hat"
	ConstAssetItemDaggerwide        = "dagger_wide"
	ConstAssetItemSwordkatanaice    = "sword_katana_ice"
	ConstAssetItemPotionblueround   = "potion_blue_round"
	ConstAssetItemSleep             = "sleep"
	ConstAssetItemBottlesmallempty  = "bottle_small_empty"
	ConstAssetItemBowboltred        = "bow_bolt_red"
	ConstAssetItemRodredglobe       = "rod_red_globe"
	ConstAssetItemLeafoaktriple     = "leaf_oak_triple"
	ConstAssetItemFeatherfire       = "feather_fire"
	ConstAssetItemFishbigbrown      = "fish_big_brown"
	ConstAssetItemChesttunic        = "chest_tunic"
	ConstAssetItemHelmetcrusader    = "helmet_crusader"
	ConstAssetItemRodcane           = "rod_cane"
	ConstAssetItemMappen            = "map_pen"
	ConstAssetItemFlamered          = "flame_red"
	ConstAssetItemFeatherice        = "feather_ice"
	ConstAssetItemBiscuit           = "biscuit"
	ConstAssetItemAxedoublethrowing = "axe_double_throwing"
	ConstAssetItemChestgold         = "chest_gold"
	ConstAssetItemHarp              = "harp"
	ConstAssetItemHerbroots         = "herb_roots"
	ConstAssetItemBananaopen        = "banana_open"
	ConstAssetItemHelmetguard       = "helmet_guard"
	ConstAssetItemShieldsilver      = "shield_silver"
	ConstAssetItemBrush             = "brush"
	ConstAssetItemSlingshot         = "slingshot"
	ConstAssetItemStrawberry        = "strawberry"
	ConstAssetItemCaulflower        = "caulflower"
	ConstAssetItemGloveplate        = "glove_plate"
	ConstAssetItemSwordwood         = "sword_wood"
	ConstAssetItemBootsgold         = "boots_gold"
	ConstAssetItemGemrainbow        = "gem_rainbow"
	ConstAssetItemBeam              = "beam"
	ConstAssetItemSwordbroadblue    = "sword_broad_blue"
	ConstAssetItemRadish            = "radish"
	ConstAssetNpc52x53Hydra3head    = "hydra_3head"
	ConstAssetNpc52x53Medusa        = "medusa"
	ConstAssetNpc52x53Centaurbrown  = "centaur_brown"
	ConstAssetNpc52x53Harpyblonde   = "harpy_blonde"
	ConstAssetNpc52x53Cerberus      = "cerberus"
	ConstAssetNpc52x53Dragonred     = "dragon_red"
	ConstAssetNpc52x53Airshipyellow = "airship_yellow"
	ConstAssetNpc52x53Beholdergray  = "beholder_gray"
	ConstAssetNpc52x53Dragongreen   = "dragon_green"
	ConstAssetNpc52x53Centaurbeard  = "centaur_beard"
	ConstAssetNpc52x53Harpyblue     = "harpy_blue"
	ConstAssetNpc52x53Hydra5head    = "hydra_5head"
	ConstAssetNpc52x53Airshipblack  = "airship_black"
	ConstAssetNpc52x53Beholdergreen = "beholder_green"
	ConstAssetNpc52x53Centaurred    = "centaur_red"
	ConstAssetOverworldLayer1       = "layer 1"
	ConstAssetPortlandLayer1        = "layer 1"
	ConstAssetSlotIdle              = "idle"
	ConstAssetWindowDefault         = "default"
	ConstAssetNpc107x92Statuesilver = "statue_silver"
	ConstAssetNpc107x92Demonnowing  = "demon_nowing"
	ConstAssetNpc107x92Demonwing    = "demon_wing"
	ConstAssetNpc107x92Garuda       = "garuda"
	ConstAssetNpc107x92Kraken       = "kraken"
	ConstAssetNpc107x92Giant        = "giant"
	ConstAssetNpc107x92Statuegold   = "statue_gold"
	ConstAssetNpc107x92Chimera      = "chimera"
	ConstAssetNpc107x92Drider       = "drider"
	ConstAssetNpc42x36Rabbitwhite   = "rabbit_white"
	ConstAssetNpc42x36Hedgehog      = "hedgehog"
	ConstAssetNpc42x36Foxred        = "fox_red"
	ConstAssetNpc42x36Pigbaby       = "pig_baby"
	ConstAssetNpc42x36Racoonbrown   = "racoon_brown"
	ConstAssetNpc42x36Goatgray      = "goat_gray"
	ConstAssetNpc42x36Rabbitbrown   = "rabbit_brown"
	ConstAssetNpc42x36Raccoongray   = "raccoon_gray"
	ConstAssetNpc42x36Cowdairybaby  = "cow_dairy_baby"
	ConstAssetNpc42x36Cowbrownbaby  = "cow_brown_baby"
	ConstAssetNpc42x36Goatwhite     = "goat_white"
	ConstAssetNpc42x36Squirrelgray  = "squirrel_gray"
	ConstAssetNpc42x36Squirrelbrown = "squirrel_brown"
	ConstAssetNpc42x36Cowdairy      = "cow_dairy"
	ConstAssetNpc42x36Cowbrown      = "cow_brown"
	ConstAssetNpc42x36Pig           = "pig"
	ConstAssetUiDisabled            = "disabled"
	ConstAssetUiSelectedpressed     = "selected-pressed"
	ConstAssetUiSelectedidle        = "selected-idle"
	ConstAssetUiPressed             = "pressed"
	ConstAssetUiSelecteddisabled    = "selected-disabled"
	ConstAssetUiIdle                = "idle"
	ConstAssetUiHover               = "hover"
	ConstAssetNpc50x46Tiger         = "tiger"
	ConstAssetBarHp                 = "hp"
	ConstAssetBattleDefault         = "default"
)

Variables

This section is empty.

Functions

func AudioPlay

func AudioPlay(name string) error

func Flush

func Flush()

Flush will flush all sprites not in markedSprites. It should be called after scene finishes loading.

func Image

func Image(imageName string) (*ebiten.Image, error)

func Index

func Index(gid uint32) uint32

Index strips a gid of rotation data

func Init

func Init()

func Layer

func Layer(spriteName string, layerName string) (*aseprite.Layer, error)

Layer returns requested layer if available

func Load

func Load(assetName string) error

Load should be called during initialization of a scene Each loaded asset is put in markedSprites. After finishing loading a scene, use Flush() to purge unused sprites

func LoadFontTTF

func LoadFontTTF(name string, fontData []byte, opts *truetype.Options, r rune) error

LoadFontTTF instantiates a truetype font. truetype.Parse() can be used to load a TTF to fontData

func ReadFile

func ReadFile(assetName string) (assetReader, error)

func SetWebAssetPath

func SetWebAssetPath(path string)

SetWebAssetPath sets the web asset URL path

func SpriteConstDump

func SpriteConstDump() map[string]*aseprite.Sprite

func Tag

func Tag(spriteName string, tagName string) (*aseprite.Tag, error)

Tag returns requested tag if available

Types

type AudioData

type AudioData struct {
	Player *audio.Player
}

AudioData represents some form of audio playback

func Audio

func Audio(name string) (*AudioData, error)

Audio returns an audio represented by name

type BoundStringCacheEntry

type BoundStringCacheEntry struct {
	// contains filtered or unexported fields
}

BoundStringCacheEntry is used for font boundings

type FontData

type FontData struct {
	Face                font.Face
	Height              int
	Name                string
	Language            language.Tag
	BoundStringCache    map[font.Face]map[string]*BoundStringCacheEntry
	RenderingLineHeight int
}

FontData represents a font data

func Font

func Font(name string) *FontData

Font returns a font represented by name

type GID

type GID struct {
	// contains filtered or unexported fields
}

GID represents a global ID, uses rotation padding on the last 3 bytes

func NewGID

func NewGID(gid uint32) (g *GID)

NewGID returns a GID

func (*GID) DRead

func (g *GID) DRead() bool

DRead returns true if diagonal flagged

func (*GID) DUpdate

func (g *GID) DUpdate(val bool)

DUpdate changes the horizontal flag

func (*GID) HRead

func (g *GID) HRead() bool

HRead reads if the tile should be changed horizontal

func (*GID) HUpdate

func (g *GID) HUpdate(val bool)

HUpdate changes the horizontal flag

func (*GID) Index

func (g *GID) Index() uint32

Index returns an index without flipping data

func (*GID) RotationRead

func (g *GID) RotationRead() (rotation int)

RotationRead returns the rotation of the object. Can only be 0, 90, 180, or 270

func (*GID) RotationUpdate

func (g *GID) RotationUpdate(rotation int) (err error)

RotationUpdate sets the rotation of a tile clockwise, supports 0, 90, 180, 270

func (*GID) VRead

func (g *GID) VRead() bool

VRead returns true if a vertical rotation is in place

func (*GID) VUpdate

func (g *GID) VUpdate(val bool)

VUpdate changes the horizontal flag

func (*GID) ValueRead

func (g *GID) ValueRead() uint32

ValueRead returns the true GID value packed with rotation data

func (*GID) ValueUpdate

func (g *GID) ValueUpdate() uint32

ValueUpdate sets the true GID value packed with rotation data

type Pivot

type Pivot struct {
	Cells []*PivotCell
}

Pivot represents attachment or pivot points

type PivotCell

type PivotCell struct {
	Pivots map[int]*PivotData
}

PivotCell represents each unique animation frame of a pivot

type PivotData

type PivotData struct {
	PositionX           int
	PositionY           int
	IsBehind            bool
	IsHorizontalFlipped bool
	IsVerticalFlipped   bool
}

PivotData represents the inner pivot details

func PivotInfo

func PivotInfo(spriteName string, cellIndex int, pivotIndex int) (*PivotData, error)

PivotInfo returns specified pivot details, used by sprites

Jump to

Keyboard shortcuts

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