Skip to content

Commit

Permalink
v1.10 Optimize the speed trend vector.
Browse files Browse the repository at this point in the history
The speed trend vector (vertical arrow next to the speed balloon) now indicates the future speed to be reached in 1 second instead of 5 seconds.
  • Loading branch information
SamToki committed Nov 26, 2024
1 parent b0c0c99 commit 36441b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file modified PROJECT/Yamanobo-Ryou/docs/山田凉上山 说明文档.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions PROJECT/Yamanobo-Ryou/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="icon" type="image/png" href="images/Favicon.png" />
<title>山田凉上山</title>
<meta name="author" content="SAM TOKI STUDIO" />
<meta name="version" content="v1.09 (2024/11/25). Since 2024/10/13." />
<meta name="version" content="v1.10 (2024/11/26). Since 2024/10/13." />
<meta name="description" content="「孤独摇滚!」同人打字训练游戏。屑凉被讨债的波奇酱追上山,开始无尽的逃亡。" />
<meta name="keywords" content="Sam Toki, SAM TOKI STUDIO, 山田凉上山, Yamanobo-Ryou, 山登リョウ, 孤独摇滚, Bocchi the Rock, 打字训练, 打字游戏, Typing game" />
<meta name="copyright" content="(C) 2024 SAM TOKI STUDIO" />
Expand Down Expand Up @@ -1179,7 +1179,7 @@ <h4>图标</h4>
<legend>关于</legend>
<p>山田凉上山</p>
<p>by SAM TOKI STUDIO</p>
<p>版本 v1.09 (<time datetime="2024-11-25" pubdate="pubdate">2024/11/25</time>)<br />
<p>版本 v1.10 (<time datetime="2024-11-26" pubdate="pubdate">2024/11/26</time>)<br />
始于 2024/10/13</p>
<p class="GreenText Hidden" id="Label_HelpPWANewVersionReady">新版本已就绪,将在下次启动时生效。</p>
<ul class="CtrlGroup BelowParagraph">
Expand Down
2 changes: 1 addition & 1 deletion PROJECT/Yamanobo-Ryou/script_ServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Declare variables
"use strict";
// Unsaved
const CacheName = "Yamanobo-Ryou_v1.09";
const CacheName = "Yamanobo-Ryou_v1.10";

// Listeners
// Service worker (https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps-chromium/how-to/#step-5---add-a-service-worker)
Expand Down
4 changes: 2 additions & 2 deletions PROJECT/Yamanobo-Ryou/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Declare variables
"use strict";
// Unsaved
const CurrentVersion = 1.09;
const CurrentVersion = 1.10;
var Game0 = {
Terrain: {
WalkedWidth: 0,
Expand Down Expand Up @@ -714,7 +714,7 @@

// Additional indicators
// Speed trend
Game.Stats.SpeedTrend = (Game0.Stats.SpeedTapeDisplay - Game0.Stats.PreviousSpeedTapeDisplay) * (5000 / (Date.now() - Game0.Stats.PreviousClockTime));
Game.Stats.SpeedTrend = (Game0.Stats.SpeedTapeDisplay - Game0.Stats.PreviousSpeedTapeDisplay) * (1000 / (Date.now() - Game0.Stats.PreviousClockTime));
Game0.Stats.SpeedTrendDisplay += (Game.Stats.SpeedTrend - Game0.Stats.SpeedTrendDisplay) / 5;
if(Game0.Stats.SpeedTrendDisplay >= 0) {
RemoveClass("Ctrl_GameSpeedTrend", "Decreasing");
Expand Down

0 comments on commit 36441b4

Please sign in to comment.