Skip to content

Commit

Permalink
Tweaks to HiSpeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewol committed Oct 15, 2017
1 parent 4497944 commit 8bc19d3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Main/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ class Game_Impl : public Game
}
virtual void Render(float deltaTime) override
{
m_track->SetViewRange(8.0f / m_hispeed);
// Magic number to make the resulting HiSpeed numbers somewhat match the resulting speeds in the other games
m_track->SetViewRange(7.4f / m_hispeed);

m_track->Tick(m_playback, deltaTime);

// Get render state from the camera
Expand Down Expand Up @@ -749,18 +751,24 @@ class Game_Impl : public Game
gaugeSampleSlot = Math::Clamp(gaugeSampleSlot, (int32)0, (int32)255);
m_gaugeSamples[gaugeSampleSlot] = m_scoring.currentGauge;

// Get the current timing point
m_currentTiming = &m_playback.GetCurrentTimingPoint();

// Update hispeed
if (g_input.GetButton(Input::Button::BT_S))
{
for (int i = 0; i < 2; i++)
{
m_hispeed += g_input.GetInputLaserDir(i);
m_hispeed += g_input.GetInputLaserDir(i);
m_hispeed = Math::Clamp(m_hispeed, 0.1f, 16.f);
if (m_usecMod || m_usemMod)
{
g_gameConfig.Set(GameConfigKeys::ModSpeed, m_hispeed * (float)m_currentTiming->GetBPM());
}
}
}

// Get the current timing point
m_currentTiming = &m_playback.GetCurrentTimingPoint();


m_lastMapTime = playbackPositionMs;

Expand Down

0 comments on commit 8bc19d3

Please sign in to comment.