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
- EndlessRunnerController.cs Complete endless runner character controller with auto-forward movement, lane switching, jump and slide mechanics. Speed increases over time with death and restart handling.
- StackMechanic.cs Tap-to-place stacking mechanic: stop the moving block over the last one. Trims the overhang, detects perfect placements and tracks stack height.
- ScoreManager.cs Complete score management system with high score persistence, combo multipliers with decay, and score change events. Uses singleton pattern for easy global access.
- SwipeInputController.cs Detects touch swipes in four directions with configurable thresholds and dead zones. Fires UnityEvents for each swipe direction with speed and distance tracking.
- TapInputHandler.cs Handles single tap, double tap, and long press gestures with configurable timing. Provides tap position in both screen and world space coordinates.
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
- Import all scripts into your Unity project
- Create a Player object and attach EndlessRunnerController (it adds the CharacterController it needs)
- Set up lane positions and obstacle spawners in the inspector
- Add TapInputHandler and SwipeInputController to a manager object
- Attach ScoreManager and configure combo thresholds
- 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.
Inspector
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 */ }
}Related
- Mobile Controls KitComplete touch input system for any mobile Unity game — virtual joystick, on-screen buttons, swipe gestures, pinch-to-zoom, gyroscope, and safe area handling.
- Idle Game SystemCore systems for idle/incremental games — passive income generation, offline earnings, upgrade progression, number formatting, and responsive mobile UI.
- Build a Hyper-Casual GameOne-tap gameplay, simple mechanics, endless fun — everything you need to prototype a hyper-casual mobile game from zero to playable.