From 07a30954042d8ef8d91a2493f294d975c0fe45cb Mon Sep 17 00:00:00 2001 From: falsycat Date: Fri, 18 Oct 2019 00:00:00 +0000 Subject: [PATCH] [update] Adjusted rank calculation. --- .bin/music/Cranky-VLSI_short.sj | 7 +++---- src/sj/PlayScene.d | 4 ++-- src/sj/ResultScene.d | 1 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.bin/music/Cranky-VLSI_short.sj b/.bin/music/Cranky-VLSI_short.sj index bb25c66..b3ada33 100644 --- a/.bin/music/Cranky-VLSI_short.sj +++ b/.bin/music/Cranky-VLSI_short.sj @@ -1,5 +1,5 @@ -$define damage_ratio {1.0} -$define nearness_ratio {0.01} +$define damage_ratio {0.75} +$define nearness_ratio {1.0} // ---- TEMPLATE DECLARATION ---- $define main_color { @@ -56,7 +56,6 @@ $repeat i 3 { square [$beat..$beat+4] { $main_square - damage := $damage_ratio*0.01; color_a = step(0.5, sin(PI*(1-pow(time, 2))*10)); } square [$beat+4..$beat+26] { @@ -659,7 +658,7 @@ $repeat i 16 { rotation_z := atan2(actor_y - translation_y, actor_x - translation_x) - PI/2; - damage = $damage_ratio * pow(time, 2); + damage = $damage_ratio * pow(time, 4) * 0.1; } $repeat x 2 { $repeat y 2 { diff --git a/src/sj/PlayScene.d b/src/sj/PlayScene.d index 4e8b949..9511248 100644 --- a/src/sj/PlayScene.d +++ b/src/sj/PlayScene.d @@ -16,9 +16,9 @@ import sj.KeyInput, class PlayScene : SceneInterface { public: /// - enum BaseScore = 100000; + enum BaseScore = 10000; /// - enum DamageScoreRatio = 10; + enum DamageScoreRatio = 100; /// enum NearnessScoreRatio = 10; diff --git a/src/sj/ResultScene.d b/src/sj/ResultScene.d index 56a01cc..57dcc6e 100644 --- a/src/sj/ResultScene.d +++ b/src/sj/ResultScene.d @@ -167,6 +167,7 @@ class ResultScene : SceneInterface { static dstring GetRankLetter(int score) { const ratio = score*1f / RankCalculationRatio; if (ratio < 0.60) return "D"d; + if (ratio < 0.70) return "C"d; if (ratio < 0.80) return "B"d; if (ratio < 0.95) return "A"d; return "S";