screen width % for anims
This commit is contained in:
parent
c853299c46
commit
9874334fc3
@ -21,9 +21,7 @@
|
|||||||
* game invites
|
* game invites
|
||||||
* change score to enum
|
* change score to enum
|
||||||
|
|
||||||
* pct based translates for combat animation
|
|
||||||
* add speed to descriptions
|
* add speed to descriptions
|
||||||
* clear skill (if currently targetted)
|
|
||||||
|
|
||||||
## SOON
|
## SOON
|
||||||
*SERVER*
|
*SERVER*
|
||||||
|
|||||||
@ -69,10 +69,9 @@ class Chaos extends Component {
|
|||||||
stroke: colour,
|
stroke: colour,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
anime.set('.skill-anim', {
|
anime.set('.skill-anim', {
|
||||||
translateY: -300 * this.props.direction.y,
|
translateY: -(window.screen.height) * 0.35 * this.props.direction.y,
|
||||||
translateX: -200 * this.props.direction.x,
|
translateX: -(window.screen.width) * 0.15 * this.props.direction.x,
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
});
|
});
|
||||||
anime.set('#explosion feDisplacementMap', {
|
anime.set('#explosion feDisplacementMap', {
|
||||||
|
|||||||
@ -71,7 +71,6 @@ class Siphon extends Component {
|
|||||||
}
|
}
|
||||||
this.props.animCb();
|
this.props.animCb();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = addState(Siphon);
|
module.exports = addState(Siphon);
|
||||||
|
|||||||
@ -91,7 +91,7 @@ class Slay extends Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
anime.set('#slay', {
|
anime.set('#slay', {
|
||||||
translateY: -400,
|
translateY: (window.screen.height) * 0.35 * this.props.direction.y,
|
||||||
translateX: 0,
|
translateX: 0,
|
||||||
});
|
});
|
||||||
anime.set('#explosion feDisplacementMap', {
|
anime.set('#explosion feDisplacementMap', {
|
||||||
|
|||||||
@ -85,7 +85,7 @@ class Strike extends Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
anime.set('#strike', {
|
anime.set('#strike', {
|
||||||
translateY: -400,
|
translateY: (window.screen.height) * 0.35 * this.props.direction.y,
|
||||||
translateX: 0,
|
translateX: 0,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user