From 421f98ef26e1efbcb0729d1f700209b483c51e2b Mon Sep 17 00:00:00 2001
From: Paolo Brasolin <paolo.brasolin@eurac.edu>
Date: Wed, 13 Apr 2022 13:47:25 +0200
Subject: [PATCH] feat: #fe tweak waves

---
 frontend/src/js/fight_scene.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/src/js/fight_scene.ts b/frontend/src/js/fight_scene.ts
index f4b8aef..e3d1cc0 100644
--- a/frontend/src/js/fight_scene.ts
+++ b/frontend/src/js/fight_scene.ts
@@ -470,7 +470,7 @@ export default class FightScene extends Phaser.Scene {
     return scale / Math.pow(Math.random(), 1 / shape);
   }
 
-  sawtoothRamp(t: number, peaksCount = 10, dipsHeight = 0.1, midwayAt = 0.3) {
+  sawtoothRamp(t: number, peaksCount = 5, dipsHeight = 0.2, midwayAt = 0.3) {
     // https://www.desmos.com/calculator/7zcb6p8qeu
     // NOTE: this always maps [0;1] ↦ [0;1]
     const ramp = t * (peaksCount * dipsHeight + 1);
-- 
GitLab