HaraRunner is a compact 3D endless runner prototype designed for Unity.
PlayerState.cs— lane movement, jump, roll, stumble, death, reviveGameManager.cs— state, score, speed, persistenceCameraShake.cs— cinematic screen shake on deathAudioManager.cs— pooled SFX managementObstacleHitbox.cs— obstacle resolution by typeSegmentSpawner.cs— endless recycled segment spawningUIManager.cs— HUD, pause, end screen, revive flowPlayerInput.cs— keyboard input for movement and actionsCoinPickup.cs— coin collection logic
- Create a
Mainscene. - Create a
Playerobject withCharacterController+PlayerState+PlayerInput. - Add a
Main Cameraand attachCameraShake. - Create a
GameManagerobject withGameManagercomponent. - Create a
Spawnerobject withSegmentSpawnerand assign the player reference. - Create a
UIcanvas with HUD, Start panel, Pause panel, End panel, and buttons. - Add
UIManagerand connect all fields in the inspector. - Create obstacles with trigger colliders and
ObstacleHitbox. - Add coins with trigger colliders and
CoinPickup.
- Left / Right = lane change
- Up / Space = jump
- Down = roll
- Low obstacle = jump over
- High obstacle = roll under
- Side obstacle = stumble
- One extra revive is allowed per run
- Unity 2022.3 LTS or newer
This repository is structured as a functional starter project for building the actual game in Unity and continuing toward Android/WebGL export.