Documentation

The Chase

A complete car chase game for Unity: drift through an endless world while the cops pile up behind you, with 5 cars, 3 maps, missions, unlocks and a mobile-ready UI.

  • Version 2.0.0
  • Unity 6000.0+
  • Platforms Android, iOS, Desktop
  • Updated Nov 16, 2026
The Chase

Overview

The Chase is a complete arcade car chase game for Unity 6, to learn from, reskin or ship. The player drifts a toy car through an endless world while the police pile up behind: lure them into trees and into each other for takedown combos, grab coins and power-ups, and survive as the wanted level brings faster cops and roadblocks. Between runs, coins buy new cars and maps, and each map has its own missions.

Everything is in the box: a menu with a 3D garage, a map picker, the chase, a Busted screen with rewarded continue and double-coins hooks, settings and saved progress. Every model is original toy-style art sharing one 256 px palette texture and one material, so the game batches well on mobile.

Requirements

ItemVersionNotes
Unity6000.0+
Universal Render Pipeline17.0+Materials and the pipeline asset in Settings/ are URP
com.unity.inputsystem1.7+Touch, keyboard and gamepad; actions in Settings/MainControlls.inputactions
com.unity.cinemachine3.0+The chase camera and its crash shake
com.unity.ugui2.0+The UI and TextMesh Pro

Platforms: Android, iOS and desktop, in landscape. The UI's Canvas Scaler uses a 1280×720 reference and the endless world fills any screen shape.

Quick start

  1. Import the package It is a complete project: it brings its scenes, prefabs and the tags, layers and Input System settings the game uses. Import it into a new, empty URP project.
  2. Open the menu scene Open Assets/HardArtcore/TheChase/Scenes/InitialScene and press Play. Tap DRIVE to load MainScene, the chase.
  3. Drive Hold the left or right half of the screen to steer (A / D or a gamepad stick). The car always drives forward. A double tap, Space or the right trigger drops a bomb when you have one.
  4. Build Both scenes are in the build list, InitialScene first. Pick Android, iOS or a desktop target and build.
Tip

Testing unlocks? Tools › TheChase › Reset Save Data deletes the save file, so the game starts fresh with 100 coins.

Upgrading from 1.x

  1. Back up your project Commit it or copy the folder.
  2. Import 2.0 over the old version.
  3. Remove what 2.0 replaced Importing never deletes files, so run Tools › TheChase › Upgrade › Remove 1.x Files. It removes Assets/Toon Vehicles Free, Car06, the old map models and environment prefabs and the old PDF documentation, and drops the empty car slot from the menu.

Prefabs, ScriptableObjects and scenes keep their GUIDs, so your references to cars, cops, maps and tiles keep working. If you edited the old car or map prefabs, re-apply those edits. Saves from 1.x that selected Car06 fall back to the first car.

How the game plays

The car always drives; the player only steers. Cops spawn ahead of the player on clear ground and chase it. A cop that hits an obstacle, a bomb or another cop is wrecked. The player loses health on any hit (cops, obstacles, bombs), and the run ends at zero health or an empty fuel tank. Fuel burns over time; fuel tanks refill it.

Score, combos and the wanted level

The rules are plain static methods in ScoreRules, so they are easy to tune in one place:

Wreck
100 × combo points.
Near miss
Passing close to a cop without touching it (NearMissDetector): 25 × combo points.
Combo
Every wreck or near miss within ComboWindow seconds (default 3) of the last one raises the combo; the HUD shows "x2 TAKEDOWN" and up.
Heat
seconds alive + cops wrecked × CopWeight (default 5).
Wanted level
0 to 5 stars: one per WantedThresholds value the heat has passed (default 15, 40, 75, 120, 180).
Cop spawn delay
Starts at CopSpawnDelay, drops one second per minute alive down to MinCopSpawnDelay, then tightens 15% per star.
Cop speed
Cops gain 0.01 top speed per second survived.

Cop Racers join from RacerCopsWantedLevel (2 stars) and roadblocks of parked Patrol Cars from RoadblockWantedLevel (3 stars). Denser tiles are picked more often as the wanted level climbs (TileRules). Best score, best distance, best combo and total cops wrecked are saved.

Coins and power-ups

PickupPrefabEffect
CoinCoinOne coin. Tiles place them as a single coin, a line of three or an arc of three to drift through.
PresentPresentA surprise: one of the other rewards.
BombBombAdds a bomb. Drop it behind you; a cop that hits it is wrecked.
Fuel TankFuelTankRefills fuel.
NitroNitroA speed burst.
MagnetMagnetPulls nearby coins in for MagnetModeDuration seconds (default 10).

A power-up spawns every AbilitySpawnDelay seconds (default 4), on the tile ahead of the player.

Cars

AssetCarTop speedPerkUnlock
Car01Crimson Cruiser25Free
Car02Copperbolt28Mission: drive 1 km in Desert
Car03Dust Devil35Takes 2 hits1,500 coins
Car04Bronco Fury37Nitro on every takedown3,000 coins
Car05Thunderbird 8842Rams cops5,000 coins

The cops are Cop01 Patrol Car, Cop02 Cop Racer and Cop03 Cop Jeep, plus the Roadblock prefab of parked Patrol Cars. Each has flashing siren lights (Lights).

The car asset

Create one with Create › TheChase › Create › Car. Fields of CarScriptableObject:

DisplayName
Shown in the menu and the garage.
CarPrefab
The car's prefab (a Car component with smoke and trail references, and a CarVisuals).
FuelAmount, FuelConsumption
Tank size and how fast it burns.
Speed, Acceleration, Deceleration, CarTurbo
Top speed and how fast it is reached and lost.
TurnSpeed, AngleLimit, RotModifier, RotConstant
Steering rate and limits.
Friction, SideFriction, FrictionModifier
Grip. Less side friction means longer drifts.
TiltAngle
Body roll at a full turn, in degrees. Visual only.
Health
Hits the car survives. 1 = wrecked on first touch.
CanRam
Cops are wrecked on contact without costing health. Obstacles still hurt.
HasNitro, NitroDuration
Every takedown fires a nitro burst of this many seconds.
UnlockData
How the car unlocks: see Unlocks.

Add a car

  1. Make the prefab Duplicate a prefab in Prefabs/Car and swap the model under it for yours. Keep the root's components and the wheel and smoke references.
  2. Make the asset Duplicate a car asset in ScriptableObjects/Cars, point CarPrefab at your prefab and tune the fields.
  3. List it In InitialScene, add the asset to the CarsManager's Cars array. The garage picks it up.

Driving feel

On the player's CarController:

TurnRampSeconds
Seconds from straight to a full turn and back, so turns ease in. 0 = instant. Default 0.1.
StuckSpeed, StuckSeconds
A car slower than this for this long (pinned against a tree) is moved to open ground. Defaults 4, 1.5.
ClearRadius
Free room the car needs where it is put back (after a continue or when stuck). Default 10.

CarVisuals, on the player and the cops, turns the drawn body toward where the car is really going, rolls it outward in turns, steers the front wheels and spins all four. It never changes collisions or handling:

MaxSlide
The body never turns more than this toward the slide. Default 25.
RollDegrees
Body roll at a full turn. Default 4.
SteerDegrees
Front wheel angle at a full turn. Default 26.
FullTurn
The turn rate, in degrees per second, that counts as a full turn. Default 150.

Cop AI

CopAIController steers toward the player and looks ahead with three whiskers to steer around obstacles. A cop that hasn't moved for StuckSeconds (default 2) or fell off the map goes back to the pool.

TopSpeedMultiplier
Cop top speed relative to the player's car. Default 1.5.
RotSpeed, SteerAngle, Acceleration, Deceleration, SideFriction, MinFriction
The cop's handling.
LookaheadSeconds
How far ahead the whiskers look, in seconds of travel. Default 0.8.
WhiskerAngle, WhiskerRadius
Spread and thickness of the side whiskers. Defaults 35, 1.5.
AvoidWeight
How hard a blocked whisker pushes the steering the other way. Default 1.5.

Maps

Three maps: Forest (round trees, mushrooms, birdhouses), Desert (organ cacti, hoodoos, tumbleweeds, agaves) and Pines (snowy pines, snowmen, ice crystals, lamp posts). Each has 10 tile prefabs in Prefabs/Maps/MapNN/Tiles and its scenery in Prefabs/Maps/MapNN/Scenery.

The map asset

Create one with Create › TheChase › Create › Map. Fields of MapScriptableObject:

Name
Shown in the map picker.
CameraSolidColor
The camera background: the ground colour beyond the tiles.
TilePrefabs
The tiles the endless world is built from.
ObstaclePrefabs
Scenery placed on tiles' obstacle points at random. Their roots must be tagged Obstacles.
UnlockData
How the map unlocks: see Unlocks.
Achievements
The map's missions, in order: see Missions.

Tiles and the endless world

TileSpawnManager keeps a grid of tiles around the player, sized from what the camera sees (wider screens get more), and only frees a tile a whole cell beyond that, so no gaps ever show. Each time a tile is placed, it gets fresh obstacles and coins.

GridSize
Smallest grid kept around the player. Grows by itself on wide screens. Default 3.
InstancesPerPrefab
Instances made per tile prefab at the start; more are made if needed. Default 2.
NoRepeatWindow
A prefab isn't placed again until this many other tiles were. Default 3.

On each Tile:

CoinPositions
Each point spawns a coin pattern (single, line or arc, chosen per placement). Rotate the point to aim lines and arcs.
ObstaclePoints
A random subset is filled each placement. A point with an ObstaclePoint component spawns its own Prefab; otherwise a random map obstacle.
Abilities
The power-ups this tile may spawn.
Danger
0 open to 2 dense. Dense tiles show up more at high wanted levels.

Add a map

  1. Tiles Duplicate a map's Tiles folder, swap the ground and set the obstacle and coin points.
  2. Scenery Make obstacle prefabs with a collider, root tagged Obstacles.
  3. The asset Duplicate a map asset, set its tiles, obstacles, colour, unlock and missions.
  4. List it Add the asset to the MapManager's Maps array in InitialScene, which also holds each map's island backdrop for the menu.

Missions and unlocks

Each map has seven missions, played in order: the menu shows the current one, and it completes the moment its goal is reached in a run (a snackbar says so). AchievementsManager tracks them.

Code
A unique id, saved when the mission completes. Cars and maps unlock by it.
Description
Shown in the menu and the snackbar. Falls back to Code.
Value
The goal.
Type
Distance (metres), Time (seconds survived), CopsWrecked, Combo, CoinsInRun or NearMisses, all within one run.
Icon
Optional sprite.
MapMissions
ForestSurvive 30 s · wreck 3 cops · drive 1 km · x3 combo · 50 coins · 10 near misses · wreck 10 cops
DesertSurvive 30 s · wreck 5 cops · drive 1 km · x4 combo · survive 90 s · 100 coins · wreck 15 cops
PinesSurvive 30 s · drive 1 km · wreck 8 cops · x5 combo · 20 near misses · survive 2 min · wreck 25 cops

Unlocks

Cars and maps share UnlockData:

UnlockType
Money (buy with coins) or Achievement (complete a mission).
Price
Coins. 0 with Money = free from the start.
AchievementId
The mission Code that unlocks it.
AchievementDescription
Shown on the locked item, e.g. "SURVIVE 30 SECONDS IN FOREST TO UNLOCK THIS MAP".

Desert unlocks by surviving 30 seconds in Forest; Pines costs 1,500 coins.

Rewarded ads

The Busted screen offers Keep driving (continue the run once) and 2× coins. Both go through MonetizationHooks in MainScene. With no listener, the reward is granted straight away, so the game works without an ad network.

  1. Show your ad Add a listener to OnContinueRequested / OnDoubleCoinsRequested that shows a rewarded ad.
  2. Grant the reward From the ad's "completed" callback, call GrantContinue() / GrantDoubleCoins().
RewardedAds.cs (yours)
using HardArtcore.TheChase.Scripts.Managers;
using UnityEngine;

public class RewardedAds : MonoBehaviour
{
    // Wire this to MonetizationHooks.OnContinueRequested in the Inspector
    public void ShowContinueAd()
    {
        MyAdNetwork.ShowRewarded(onCompleted: () => MonetizationHooks.Instance.GrantContinue());
    }

    // Wire this to MonetizationHooks.OnDoubleCoinsRequested
    public void ShowDoubleCoinsAd()
    {
        MyAdNetwork.ShowRewarded(onCompleted: () => MonetizationHooks.Instance.GrantDoubleCoins());
    }
}

A continue puts the car back on open ground, facing open road, with ContinueGracePeriod seconds (default 2) of invulnerability. Each reward can be used once per run.

Architecture

Two scenes. InitialScene is the menu: the 3D garage and map picker, settings and the mission list. MainScene is the chase. SceneLoadingManager moves between them behind a loading curtain. The managers are singletons with a static Instance; the ones marked "kept" start in InitialScene and survive the scene change (DontDestroyOnLoad); the code is in the HardArtcore.TheChase.Scripts.* namespaces, in the project's default assemblies.

ClassSceneRole
GameManagerMainRun state, cop / roadblock / power-up spawning, magnet mode, continue and restart
ScoreManagerMainScore, combo, near misses, wrecks, wanted level, best scores
TileSpawnManagerMainThe endless tile grid
PoolManagerMainPools of cops, roadblocks, collectables and explosions
AchievementsManagerMainMission progress
MonetizationHooksMainRewarded continue and double coins
CarsManager, MapManagerInitial, keptCar and map lists, selection and purchase
CurrencyManagerInitial, keptCoins
SoundManagerInitial, keptAudio
UiManager, SnackBarManagerMainHUD, Busted screen, toasts
SaveManagerStaticThe save file
UpdateManagerMainOne Update for every BaseBehaviour (cars, cops)

Folder layout

Assets/HardArtcore/TheChase/
├── Documentation.html     this page, offline
├── Animations/            bomb animation
├── Fonts/                 Montserrat and its TMP font assets
├── Materials/             the shared palette material, per-map ground, VFX
├── Models/                cars, cops, collectables, map scenery, VFX
├── Prefabs/
│   ├── Car/               Car01–Car05
│   ├── Cops/              Cop01–Cop03, Roadblock
│   ├── Collectable/       Coin, Present, Bomb, FuelTank, Nitro, Magnet
│   ├── Maps/Map01–03/     Tiles/ and Scenery/
│   └── VFX/               Explosion, Skidmarks, Smoke
├── Scenes/                InitialScene, MainScene
├── ScriptableObjects/     Cars/Car01–05, Maps/Map01–03
├── Scripts/
│   ├── Config/            Achievement, UnlockData
│   ├── Controllers/       CarController, CopAIController
│   ├── Editor/            Tools › TheChase menu
│   ├── Managers/          the managers, ScoreRules, TileRules
│   ├── Motion/            the tween library
│   ├── Objects/           collectables, tiles, cars, roadblock
│   ├── ScriptableObjects/ CarScriptableObject, MapScriptableObject
│   ├── UI/                screens, HUD, dialogs
│   └── Utils/
├── Settings/              URP asset and renderer, input actions
├── Shaders/, Sounds/, Sprites/, Textures/

Pooling

PoolManager.PoolItems lists each pooled prefab with its ObjectType and count. Get an instance with GetPooledObject(type); deactivate it to return it.

Warning

ObjectType values are saved as numbers in MainScene. Add new types at the end of the enum, never in the middle.

Scripting

Events

Static C# events, for HUDs, analytics or your own systems:

EventArgument
GameManager.OnGameStarted / OnGameOver
GameManager.OnCounterUpdatedSeconds alive
GameManager.OnMagnetModeChangedOn or off
ScoreManager.OnScoreChanged, OnComboChanged, OnWantedChangedThe new value
ScoreManager.OnCopsWreckedChanged, OnNearMissesChangedThe run's count
CarController.OnHealthChangedHealth, max health
CarController.OnFuelConsumed, OnDistanceTravelled, OnBombsCountUpdated, OnPlayerDied
CopAIController.OnCopDied
CurrencyManager.OnCoinsUpdatedCoins added, new total
AchievementsManager.OnAchievementUnlockedThe Achievement
CarsManager.OnCarSelected, MapManager.OnMapSelectedThe car asset, the map index
ComboAnalytics.cs (yours)
using HardArtcore.TheChase.Scripts.Managers;
using UnityEngine;

public class ComboAnalytics : MonoBehaviour
{
    void OnEnable()  => ScoreManager.OnComboChanged += OnCombo;
    void OnDisable() => ScoreManager.OnComboChanged -= OnCombo;

    void OnCombo(int combo)
    {
        if (combo >= 5) Debug.Log($"x{combo} takedown, wanted level {ScoreManager.CurrentWantedLevel}");
    }
}

Useful calls

CurrencyManager.Instance.AddCoins(500);          // also SubtractCoins
var coins = CurrencyManager.Instance.Coins;

GameManager.Instance.IsGameStarted();            // IsPaused(), IsGameOver()
GameManager.Instance.GetTravelledDistance();     // metres this run
GameManager.Instance.SecondsAlive;
GameManager.Instance.EnableMagnetMode();

var score = ScoreManager.Instance.Score;         // Combo, CopsWrecked, NearMisses, WantedLevel

CarsManager.Instance.GetSelectedCar();           // the CarScriptableObject
MapManager.Instance.GetSelectedMap();            // the MapScriptableObject

Save data

SaveManager keeps a JSON file, save.json, in Application.persistentDataPath. An unreadable file starts a fresh save. SaveData holds coins (100 at the start), the selected car and map, music and sound switches, unlocked ids and the best score, distance and combo and total cops wrecked.

SaveManager.Data.Coins += 100;
SaveManager.Save();

SaveManager.IsUnlocked("WRECK_3_COPS_MAP01");
SaveManager.Unlock("MY_CAR");
SaveManager.Delete();                            // what Tools › TheChase › Reset Save Data does

Input

The player's PlayerInput uses Settings/MainControlls.inputactions and calls CarController.Move (steer) and CarController.Action (drop a bomb: double tap, Space, right trigger). Add bindings to the asset to support more devices.

UI motion

Screens slide in from their edges, dialogs pop in as one card, buttons spring when pressed and counters punch and count up. It is all a small tween library in Scripts/Motion (namespace HardArtcore.TheChase.Scripts.Motion). It runs on unscaled time, so it keeps moving while the game is paused, and a tween stops when the object it belongs to is destroyed.

Tween
Tween.Move, Rotate, Scale, Value and Play(timeline, owner). Each returns a TweenHandle with IsAlive and Kill().
Timeline
A sequence: Append, Join, Insert, AppendInterval, AppendCallback, OnComplete.
Appear
Fades and slides a UI element in (Play(offset, delay)) and out (PlayOut()).
Punch
A scale punch when a value changes: Punch.On(text, 0.3f).
PressFeedback
Hover and press spring on a button. It replaces 1.x's AnimatedButton, which now just adds one.
using HardArtcore.TheChase.Scripts.Motion;

coinsText.text = coins.ToString();
Punch.On(coinsText, 0.3f);

Tween.Play(new Timeline()
    .Append(0.25f, Ease.OutBack, t => card.localScale = Vector3.one * t)
    .AppendCallback(() => Debug.Log("shown")), owner: card);

MotionPrefs.Reduced = () => mySettings.ReduceMotion;  // decorative motion jumps to its end

Art and your own models

Every vehicle and scenery model shares one 256 px palette texture and one URP Unlit material, so the scene batches well. To use your own art, swap the model under a car or cop prefab for your FBX, or add scenery prefabs to a map's ObstaclePrefabs and point a tile's obstacle points at them.

Performance

  • Cops, roadblocks, collectables, explosions and tiles are pooled; nothing is instantiated during a run once the pools are warm.
  • Cars and cops update through one UpdateManager instead of a MonoBehaviour.Update each.
  • One material and one palette texture for every model.
  • The UI motion library caps a frame's time step, so a hitch pauses an animation instead of skipping it.

Troubleshooting

Everything is pink
The project isn't on URP. Set Settings/UniversalRenderPipelineAsset in Project Settings › Graphics and Quality.
The car doesn't steer
Set Project Settings › Player › Active Input Handling to Input System Package (or Both).
Cars drive through scenery
The obstacle's root isn't tagged Obstacles, or has no collider.
Old cars or maps after upgrading
Run Tools › TheChase › Upgrade › Remove 1.x Files.
Everything is already unlocked
An old save is kept: Tools › TheChase › Reset Save Data.

Third-party notices

  • Montserrat font, SIL Open Font License 1.1.
  • Material Symbols Rounded icons (Google), Apache License 2.0.
  • Sound effects from zapsplat.com (button click, coin, explosion, tires) and videoplasty.com (police siren loop).

The full licence texts ship in the package's Documentation.html, and online: SIL Open Font License 1.1, Apache License 2.0.

Release notes

2.0.0

  • All new look: original toy-style cars, cops and scenery sharing one palette texture and one material.
  • 5 cars (Crimson Cruiser, Copperbolt, Dust Devil, Bronco Fury, Thunderbird 88) with perks: two hits, ramming cops, nitro on every takedown.
  • 3 cop types (Patrol Car, Cop Racer, Cop Jeep) and Patrol Car roadblocks, with flashing siren lights.
  • 3 maps with new scenery: Forest, Desert and Pines.
  • Score, takedown combos, near misses and a 5-star wanted level that brings cop racers and roadblocks.
  • 21 missions, 7 per map; cars and maps unlock with coins or missions.
  • Nitro power-up; coins in lines and arcs.
  • Rewarded "Keep driving" and "2× coins" hooks on the Busted screen.
  • Redesigned, animated UI and a small tween library (Tween, Timeline, Appear, Punch, PressFeedback).
  • Smoother driving: turns ease in, and CarVisuals rolls the body, steers the front wheels and spins the wheels.
  • Cops steer around obstacles, spawn on clear ground and leave when stuck.
  • Fixed: gaps in the ground on wide screens; the car getting stuck; a continue restarting against an obstacle; buying a map unlocking a car; buying the wrong car or charging the wrong price; a double tap on DRIVE loading twice.
  • Removed: Car06 and the third-party "Toon Vehicles Free" models. Run Tools › TheChase › Upgrade › Remove 1.x Files after updating.
  • The documentation is now this page (Documentation.html), offline in the package and online.

1.4

  • Unity 6 support, a new dark map, time and distance achievements, unlocks by coins or achievements, Cinemachine 3, UI improvements.

1.3

  • Updated to the latest Unity LTS.

1.2

  • Code readability and small performance improvements.

Need help?

Questions, bug reports or feature requests: I usually reply within a day.

support@hardartcore.com

Last updated November 16, 2026.