GAME DEV ยท NOV 2026
Road(eo) to Jerusalem
Android racing game where you steer a donkey by tilting your phone and shake it to tackle rivals. One donkey carries Jesus: steal him and, if you hold him at the finish line, you climb up to four places in the final ranking. Races run against AI donkeys or online with Photon Fusion.

At a glance
- ROLE
- Animation system, race-end state, AI drivers and ads integration
- TEAM
- 8 people
- CONTEXT
- School project at Forsbergs Skola
What I built
- Donkey animation system: a bridge that turns message broker events (tackle, hit, finish) into Animator calls, shared by the player and the AI donkeys.
- Integration and testing of the multiplayer race end: one networked state object decides when the race is over and every client builds the same ranking, tested with 2 players.
- NavMesh and animation drivers for the AI donkeys.
- A Unity Ads manager that never blocks the player, with frequency limits, retries and a timeout. It runs in test mode and is not part of the released build.
- Google Play internal testing and release.
- The project website and its privacy policy.
Technical decision
One list of finishers decides the end of the race
Each donkey writes its own Finished flag, and the master client copies new finishers, in order, into a networked list. The race is over when every player in Runner.ActivePlayers has a record, so someone who disconnects mid-race does not block the end screen. Every client then reads the same list in Render() and fills the same ranking, without any RPCs.
RaceState.cs
void RegisterNewFinishers()
{
DonkeyRaceStatus.All.RemoveAll(s => s == null);
foreach (var status in DonkeyRaceStatus.All)
{
if (!status.Finished) continue;
if (FinishCount >= MaxRecords) return;
PlayerRef player = status.Object.StateAuthority;
if (player == PlayerRef.None || HasRecord(player)) continue;
Finishes.Set(FinishCount, new FinishRecord
{
Player = player,
HasJesus = status.HasJesus,
Name = status.PlayerName
});
FinishCount++;
}
}
bool HasRecord(PlayerRef player)
{
for (int i = 0; i < FinishCount; i++)
{
if (Finishes[i].Player == player) return true;
}
return false;
}
// Players who left are not in ActivePlayers
bool AllActivePlayersFinished()
{
foreach (var player in Runner.ActivePlayers)
{
if (!HasRecord(player)) return false;
}
return true;
}