* new letterbox implementation

* make DSP buffer larger

* add new "ambient" letterbox option

* remap keyboard control

* enable autoplay cheat mode

* fix editor settings not being applied on start

* run the cursor init in editor init

remove debug prints
This commit is contained in:
minenice55
2023-03-11 21:56:26 -05:00
committed by GitHub
parent 20aa211781
commit 29d8c3c40d
46 changed files with 1328 additions and 1619 deletions

View File

@ -23,7 +23,6 @@ namespace HeavenStudio
public string txt;
public string ext;
public Camera GameCamera, CursorCam, OverlayCamera, StaticCamera;
public GameObject GameLetterbox;
public CircleCursor CircleCursor;
[HideInInspector] public GameObject GamesHolder;
public Games.Global.Flash fade;
@ -743,9 +742,16 @@ namespace HeavenStudio
public void SetCurrentGame(string game)
{
currentGame = game;
if (GetGameInfo(currentGame) != null) CircleCursor.InnerCircle.GetComponent<SpriteRenderer>().color = Colors.Hex2RGB(GetGameInfo(currentGame).color);
if (GetGameInfo(currentGame) != null)
{
CircleCursor.InnerCircle.GetComponent<SpriteRenderer>().color = Colors.Hex2RGB(GetGameInfo(currentGame).color);
HeavenStudio.StaticCamera.instance.SetAmbientGlowColour(Colors.Hex2RGB(GetGameInfo(currentGame).color));
}
else
{
CircleCursor.InnerCircle.GetComponent<SpriteRenderer>().color = Color.white;
HeavenStudio.StaticCamera.instance.SetAmbientGlowColour(Color.black);
}
}
private bool SongPosLessThanClipLength(float t)