Bug fixes and scene changes #267

Merged
glencelow merged 15 commits from PlayerController into main 2022-11-23 20:53:44 +08:00
4 changed files with 6 additions and 1 deletions
Showing only changes of commit 22972d7455 - Show all commits

Binary file not shown.

Binary file not shown.

View File

@ -5,7 +5,7 @@ public class MainMenu : Script
{
protected override void awake()
{
Audio.PlayBGMOnce2D("event:/Music/player_undetected");
Audio.PlayBGMOnce2D("event:/Music/main_menu");
}
protected override void update()
{
@ -13,10 +13,12 @@ public class MainMenu : Script
{
Audio.PlaySFXOnce2D("event:/UI/mouse_down_element");
SceneManager.ChangeScene(86098106);
Audio.StopAllSounds();
}
if (Input.GetKey(Input.KeyCode.Escape))
{
Audio.StopAllSounds();
Application.Quit();
}
}

View File

@ -140,6 +140,9 @@ namespace SHADE
}
const double FIXED_DT = physicsSystem->fixedDT;
//to be remove =======================================================
dt = std::clamp(dt, 0.0, 1.0 / 30.0);
//to be remove =======================================================
accumulatedTime += dt;
//testFunction();