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

@@ -98,7 +98,8 @@ export function main() {
}, 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';