Demo day booth

This commit is contained in:
Dries Van Schuylenbergh
2023-04-23 18:50:07 +00:00
committed by Jelle De Geest
parent 5b4a3ec4e7
commit fcd8acad1e
248 changed files with 22351 additions and 7800 deletions

View File

@@ -12,7 +12,7 @@ using Random = UnityEngine.Random;
/// Contains all game logic for the JustSign game
/// </summary>
public class JustSignController : AbstractFeedback
{
{
/// <summary>
/// All of the words that can be used in this session
/// </summary>
@@ -73,7 +73,7 @@ public class JustSignController : AbstractFeedback
/// Reference to the webcam
/// </summary>
public RawImage webcamScreen;
/// <summary>
/// Score obtained when getting a perfect hit
/// </summary>
@@ -283,7 +283,7 @@ public class JustSignController : AbstractFeedback
/// Sprite shown when sign leaves screen
/// </summary>
public Sprite tooLateSprite;
/// <summary>
/// Reference to display the feedback image
/// </summary>
@@ -308,7 +308,7 @@ public class JustSignController : AbstractFeedback
signPredictor.SetModel(currentTheme.modelIndex);
signPredictor.SwapScreen(webcamScreen);
AddSelfAsListener();
StartController();
}
@@ -379,7 +379,7 @@ public class JustSignController : AbstractFeedback
// Spawn new symbol every spawn period
float currentTime = Time.time;
if (currentTime - lastSpawn > 2*currentSong.spawnPeriod && lastSymbolTime > currentTime)
if (currentTime - lastSpawn > currentSong.spawnPeriod && lastSymbolTime > currentTime)
{
lastSpawn = currentTime;
SpawnNewSymbol();
@@ -408,7 +408,7 @@ public class JustSignController : AbstractFeedback
/// <returns>The calculated score</returns>
public int CalculateScore()
{
return goodSigns*goodScore + perfectSigns*perfectScore + mehScore*mehSigns + terribleScore*terribleSigns + incorrectSigns*offscreenScore;
return goodSigns * goodScore + perfectSigns * perfectScore + mehScore * mehSigns + terribleScore * terribleSigns + incorrectSigns * offscreenScore;
}
/// <summary>
@@ -657,8 +657,8 @@ public class JustSignController : AbstractFeedback
accuracy = signPredictor.learnableProbabilities[predictedSign];
// ^^^ TEMPORARY STUFF ^^^
Learnable predSign = currentTheme.learnables.Find(l => l.name == predictedSign);
Learnable predSign = currentTheme.learnables.Find(l => l.name.ToUpper().Replace(" ", "-") == predictedSign);
if (feedbackText != null && feedbackProgressImage != null)
{
Color col;