Hyper-Casual Starter Kit

Everything you need to prototype hyper-casual games in hours — one-tap input, endless runner template, stack mechanic, score tracking, and swipe controls.

5 scripts beginner Starter kit Solo devs prototyping hyper-casual games for mobile

Download hyper-casual-starter-kit.zip 5 scripts and a README · 23 KB of C# · MIT

What is inside

What it does

  • One-tap gameplay mechanics
  • Endless runner template with lane switching
  • Stack/tower builder mechanic
  • Score tracking with combos and high score
  • Swipe and tap input detection
  • Ready for ad integration points

Setup, in order

  1. Import all scripts into your Unity project
  2. Create a Player object and attach EndlessRunnerController (it adds the CharacterController it needs)
  3. Set up lane positions and obstacle spawners in the inspector
  4. Add TapInputHandler and SwipeInputController to a manager object
  5. Attach ScoreManager and configure combo thresholds
  6. Optionally add StackMechanic for a stacking mini-game mode

If something does not work

The runner does not die on obstacles
EndlessRunnerController ends the run in OnTriggerEnter on objects tagged Obstacle. Create the Obstacle tag, tag your obstacles with it, and make their colliders triggers.
Swipes work in the Editor but not on the phone, or the reverse
The input scripts read touches on device and fall back to the mouse in the Editor. Test gesture thresholds on a real phone; distances that feel right with a mouse are often too large for a thumb.
The high score resets
ScoreManager stores the high score in PlayerPrefs. It survives restarts but not uninstalling the app, and a call to its reset method deletes it.
Every input call throws InvalidOperationException in a new Unity 6 project
The scripts read the legacy Input class, which new Unity 6 projects switch off. Set Project Settings > Player > Active Input Handling to Both and let the Editor restart. Details and the Input System alternative.

Preview

An excerpt of the kit's main types, and the Inspector fields they expose.

InspectorExcerpt

Fields from the kit's preview excerpt; the full kit has more.

Run Speed 8
Lane Distance 2.5
Lane Count 3
Excerpt
C#
// ScoreManager.cs - Track score, combos, and high score
public class ScoreManager : MonoBehaviour
{
    public static ScoreManager Instance { get; private set; }
    public int Score { get; private set; }
    public int HighScore { get; private set; }
    public int ComboMultiplier { get; private set; }

    public void AddScore(int points)
    {
        Score += points * ComboMultiplier;
        if (Score > HighScore) HighScore = Score;
    }
}

// EndlessRunnerController.cs - Lane-based runner
public class EndlessRunnerController : MonoBehaviour
{
    [SerializeField] private float runSpeed = 8f;
    [SerializeField] private float laneDistance = 2.5f;
    [SerializeField] private int laneCount = 3;

    public void SwitchLane(int direction) { /* move left/right */ }
    public void Jump() { /* jump over obstacles */ }
}