From c02273d29d98b332744adf82a1b56e4f2fcda7c4 Mon Sep 17 00:00:00 2001 From: Ariari04 Date: Wed, 10 Dec 2025 20:58:10 +0600 Subject: [PATCH] added ship velocity using dragging volume --- Game.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Game.cpp b/Game.cpp index 33602a0..75e9130 100755 --- a/Game.cpp +++ b/Game.cpp @@ -384,6 +384,7 @@ void Game::UpdateVolumeFromMouse(int mouseX, int mouseY) { int uiX = mouseX; int uiY = Environment::height - mouseY; + Environment::shipVelocity = (musicVolume - 0.2) * (20.0); if (uiY < volumeBarMinY || uiY > volumeBarMaxY) { return;