added duration from asesprite json, background animation, prepared
idle animation
This commit is contained in:
@@ -162,7 +162,7 @@ func NewGrid(world *ecs.World,
|
||||
//if tile.AnimateOnDestruct {
|
||||
if tile.AnimationTrigger != "" {
|
||||
// FIXME: be more generic, use LDTK enum
|
||||
render.Animate.Tiles = tile.AnimationSpriteSheet.Sprites
|
||||
render.Animate.Sprites = tile.AnimationSpriteSheet.Sprites
|
||||
render.Animate.Width = tile.AnimationSpriteSheet.Width
|
||||
render.Animate.Height = tile.AnimationSpriteSheet.Height
|
||||
render.Animate.Trigger = tile.AnimationTrigger
|
||||
|
||||
Reference in New Issue
Block a user