Bachelor project. Mobile endless runner game, where you don't control the character, instead you control the world around it. You have to collect items and use the right item at the right time to destroy obstacles and save the fox.
Two versions of application exists. First one with linear increasing difficulty. Another one with adaptive difficulty affected by heart rate provided by Samsung Gear S3 watch.
Sources:
- Fonts
- ConsumerService.java and watch app
- FoxRunActivity.java
- Singleton pattern (DifficultyManager, HeartRate, GameManager, EventLogger)
private static GameManager _instance;
public static GameManager Instance { get { return _instance; } }
private void Awake()
{
if (_instance != null && _instance != this)
{
Destroy(this.gameObject);
}
else
{
_instance = this;
}
}
- Countdown - GameManager
public static IEnumerator WaitForUnscaledSeconds(float dur)
{
var cur = 0f;
while (cur < dur)
{
yield return null;
cur += Time.unscaledDeltaTime;
}
}


