Visual and timing tweaks

This commit is contained in:
Ian Gulliver
2021-05-10 03:51:24 +00:00
parent 0818a57202
commit 1467e84dfe
4 changed files with 522 additions and 518 deletions

File diff suppressed because it is too large Load Diff

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -71,7 +71,7 @@ class Tower extends Tile {
{ {
'offset': 0.3, 'offset': 0.3,
'easing': 'linear', 'easing': 'linear',
'top': '25%', 'top': '20%',
}, },
{ {
'offset': 1.0, 'offset': 1.0,
@@ -90,7 +90,7 @@ class Tower extends Tile {
{ {
'offset': 0.3, 'offset': 0.3,
'easing': 'linear', 'easing': 'linear',
'top': '25%', 'top': '20%',
}, },
{ {
'offset': 1.0, 'offset': 1.0,
@@ -100,7 +100,7 @@ class Tower extends Tile {
'duration': 3000, 'duration': 3000,
'iterations': 1, 'iterations': 1,
}); });
}, 5000); }, 3250);
return elem; return elem;
} }
} }
@@ -125,12 +125,12 @@ class Fireball extends Tile {
base.animate([ base.animate([
{ {
'offset': 0.0, 'offset': 0.0,
'easing': 'cubic-bezier(0.33333, 0.66667, 0.66667, 1)', 'easing': 'cubic-bezier(0.33, 0.66, 0.66, 1.00)',
'top': '0', 'top': '0',
}, },
{ {
'offset': 0.50, 'offset': 0.50,
'easing': 'cubic-bezier(0.33333, 0, 0.66667, 0.33333)', 'easing': 'cubic-bezier(0.33, 0.00, 0.66, 0.33)',
'top': '-500%', 'top': '-500%',
}, },
{ {
@@ -159,7 +159,7 @@ class Fireball extends Tile {
'duration': 1500, 'duration': 1500,
'iterations': 1, 'iterations': 1,
}); });
}, 5000); }, 3250);
return elem; return elem;
} }
} }

File diff suppressed because one or more lines are too long

View File

@@ -86,7 +86,7 @@ class Tower extends Tile {
'offset': 0.3, 'offset': 0.3,
'easing': 'linear', 'easing': 'linear',
'top': '25%', 'top': '20%',
}, },
{ {
'offset': 1.0, 'offset': 1.0,
@@ -109,7 +109,7 @@ class Tower extends Tile {
'offset': 0.3, 'offset': 0.3,
'easing': 'linear', 'easing': 'linear',
'top': '25%', 'top': '20%',
}, },
{ {
'offset': 1.0, 'offset': 1.0,
@@ -120,7 +120,7 @@ class Tower extends Tile {
'duration': 3000, 'duration': 3000,
'iterations': 1, 'iterations': 1,
}); });
}, 5000); }, 3250);
return elem; return elem;
} }
@@ -149,13 +149,13 @@ class Fireball extends Tile {
base.animate([ base.animate([
{ {
'offset': 0.0, 'offset': 0.0,
'easing': 'cubic-bezier(0.33333, 0.66667, 0.66667, 1)', 'easing': 'cubic-bezier(0.33, 0.66, 0.66, 1.00)',
'top': '0', 'top': '0',
}, },
{ {
'offset': 0.50, 'offset': 0.50,
'easing': 'cubic-bezier(0.33333, 0, 0.66667, 0.33333)', 'easing': 'cubic-bezier(0.33, 0.00, 0.66, 0.33)',
'top': '-500%', 'top': '-500%',
}, },
@@ -189,7 +189,7 @@ class Fireball extends Tile {
'duration': 1500, 'duration': 1500,
'iterations': 1, 'iterations': 1,
}); });
}, 5000); }, 3250);
return elem; return elem;
} }