greenaxe svg + animation

This commit is contained in:
Ian Gulliver
2021-05-15 05:18:03 +00:00
parent 65a1b6d942
commit 0030b63e3a
24 changed files with 1454 additions and 29 deletions

View File

@@ -88,7 +88,8 @@ export function main() {
grid.add_tile(tiles.FIREBALL_IMPACT, 31 + target_relative_x, 27 + target_relative_y);
}, factory.duration);
}, 3250);
const greenaxe = grid.add_tile(tiles.GREENAXE_WALK1, 30, 16);
const greenaxe = grid.add_tile(tiles.GREENAXE, 30, 16);
greenaxe.play('walk');
greenaxe.elem.style.transitionProperty = 'top,left';
greenaxe.elem.style.transitionDuration = '25s';
greenaxe.elem.style.transitionTimingFunction = 'linear';