good shit

This commit is contained in:
ntr
2019-10-08 15:51:05 +11:00
parent 7437111cac
commit cf05487c6d
3 changed files with 12 additions and 6 deletions
+4 -4
View File
@@ -77,10 +77,10 @@ class Chaos extends Component {
projectiles.forEach(proj => this.animations.push(anime({
targets: proj,
// cx: 150 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
// cy: 200 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
cx: 150,
cy: 200,
cx: 150 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
cy: 200 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
// cx: 150,
// cy: 200,
// opacity: 0,
delay: TIMES.TARGET_DELAY_MS,
+2 -2
View File
@@ -89,8 +89,8 @@ class SiphonTick extends Component {
projectiles.forEach(proj => {
anime({
targets: proj,
cx: 150 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
cy: 150 + (Math.random() * 50 * (Math.random() < 0.5 ? -1 : 1)),
cx: 150 + (Math.random() * 300 * (Math.random() < 0.5 ? -1 : 1)),
cy: 150 + (Math.random() * 300 * (Math.random() < 0.5 ? -1 : 1)),
delay: (Math.random() * duration * 1 / 2),
duration,
easing: 'easeInQuad',