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.
Press Play
Open InitialScene and play: menu, garage, map picker, the chase and the Busted screen.
Cops, combos, heat
Wrecks and near misses score, quick wrecks chain into combos, and a 5-star wanted level raises the heat.
5 cars, 3 maps
Cars and maps are ScriptableObjects: add your own without code.
21 missions
Seven per map. Missions unlock cars and maps, or use coins.
Rewarded-ad hooks
Keep driving and 2× coins, ready for your ad network.
Animated UI
A small tween library drives every screen, button, dialog and counter.
Requirements
| Item | Version | Notes |
|---|---|---|
| Unity | 6000.0+ | |
| Universal Render Pipeline | 17.0+ | Materials and the pipeline asset in Settings/ are URP |
com.unity.inputsystem | 1.7+ | Touch, keyboard and gamepad; actions in Settings/MainControlls.inputactions |
com.unity.cinemachine | 3.0+ | The chase camera and its crash shake |
com.unity.ugui | 2.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
- 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.
- Open the menu scene Open
Assets/HardArtcore/TheChase/Scenes/InitialSceneand press Play. Tap DRIVE to loadMainScene, the chase. - 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.
- Build Both scenes are in the build list,
InitialScenefirst. Pick Android, iOS or a desktop target and build.
Testing unlocks? deletes the save file, so the game starts fresh with 100 coins.
Upgrading from 1.x
- Back up your project Commit it or copy the folder.
- Import 2.0 over the old version.
- Remove what 2.0 replaced Importing never deletes files, so run . 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 × combopoints.- Near miss
- Passing close to a cop without touching it (
NearMissDetector):25 × combopoints. - Combo
- Every wreck or near miss within
ComboWindowseconds (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
WantedThresholdsvalue the heat has passed (default 15, 40, 75, 120, 180). - Cop spawn delay
- Starts at
CopSpawnDelay, drops one second per minute alive down toMinCopSpawnDelay, 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
| Pickup | Prefab | Effect |
|---|---|---|
| Coin | Coin | One coin. Tiles place them as a single coin, a line of three or an arc of three to drift through. |
| Present | Present | A surprise: one of the other rewards. |
| Bomb | Bomb | Adds a bomb. Drop it behind you; a cop that hits it is wrecked. |
| Fuel Tank | FuelTank | Refills fuel. |
| Nitro | Nitro | A speed burst. |
| Magnet | Magnet | Pulls 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
| Asset | Car | Top speed | Perk | Unlock |
|---|---|---|---|---|
Car01 | Crimson Cruiser | 25 | Free | |
Car02 | Copperbolt | 28 | Mission: drive 1 km in Desert | |
Car03 | Dust Devil | 35 | Takes 2 hits | 1,500 coins |
Car04 | Bronco Fury | 37 | Nitro on every takedown | 3,000 coins |
Car05 | Thunderbird 88 | 42 | Rams cops | 5,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 . Fields of CarScriptableObject:
- DisplayName
- Shown in the menu and the garage.
- CarPrefab
- The car's prefab (a
Carcomponent with smoke and trail references, and aCarVisuals). - 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
- Make the prefab Duplicate a prefab in
Prefabs/Carand swap the model under it for yours. Keep the root's components and the wheel and smoke references. - Make the asset Duplicate a car asset in
ScriptableObjects/Cars, pointCarPrefabat your prefab and tune the fields. - List it In
InitialScene, add the asset to theCarsManager'sCarsarray. 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. Default0.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 . 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
ObstaclePointcomponent spawns its ownPrefab; otherwise a random map obstacle. - Abilities
- The power-ups this tile may spawn.
- Danger
0open to2dense. Dense tiles show up more at high wanted levels.
Add a map
- Tiles Duplicate a map's
Tilesfolder, swap the ground and set the obstacle and coin points. - Scenery Make obstacle prefabs with a collider, root tagged
Obstacles. - The asset Duplicate a map asset, set its tiles, obstacles, colour, unlock and missions.
- List it Add the asset to the
MapManager'sMapsarray inInitialScene, 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,CoinsInRunorNearMisses, all within one run. - Icon
- Optional sprite.
| Map | Missions |
|---|---|
| Forest | Survive 30 s · wreck 3 cops · drive 1 km · x3 combo · 50 coins · 10 near misses · wreck 10 cops |
| Desert | Survive 30 s · wreck 5 cops · drive 1 km · x4 combo · survive 90 s · 100 coins · wreck 15 cops |
| Pines | Survive 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) orAchievement(complete a mission).- Price
- Coins.
0withMoney= free from the start. - AchievementId
- The mission
Codethat 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.
- Show your ad Add a listener to
OnContinueRequested/OnDoubleCoinsRequestedthat shows a rewarded ad. - Grant the reward From the ad's "completed" callback, call
GrantContinue()/GrantDoubleCoins().
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.
| Class | Scene | Role |
|---|---|---|
GameManager | Main | Run state, cop / roadblock / power-up spawning, magnet mode, continue and restart |
ScoreManager | Main | Score, combo, near misses, wrecks, wanted level, best scores |
TileSpawnManager | Main | The endless tile grid |
PoolManager | Main | Pools of cops, roadblocks, collectables and explosions |
AchievementsManager | Main | Mission progress |
MonetizationHooks | Main | Rewarded continue and double coins |
CarsManager, MapManager | Initial, kept | Car and map lists, selection and purchase |
CurrencyManager | Initial, kept | Coins |
SoundManager | Initial, kept | Audio |
UiManager, SnackBarManager | Main | HUD, Busted screen, toasts |
SaveManager | Static | The save file |
UpdateManager | Main | One 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.
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:
| Event | Argument |
|---|---|
GameManager.OnGameStarted / OnGameOver | |
GameManager.OnCounterUpdated | Seconds alive |
GameManager.OnMagnetModeChanged | On or off |
ScoreManager.OnScoreChanged, OnComboChanged, OnWantedChanged | The new value |
ScoreManager.OnCopsWreckedChanged, OnNearMissesChanged | The run's count |
CarController.OnHealthChanged | Health, max health |
CarController.OnFuelConsumed, OnDistanceTravelled, OnBombsCountUpdated, OnPlayerDied | |
CopAIController.OnCopDied | |
CurrencyManager.OnCoinsUpdated | Coins added, new total |
AchievementsManager.OnAchievementUnlocked | The Achievement |
CarsManager.OnCarSelected, MapManager.OnMapSelected | The car asset, the map index |
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,ValueandPlay(timeline, owner). Each returns aTweenHandlewithIsAliveandKill().- 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
UpdateManagerinstead of aMonoBehaviour.Updateeach. - 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/UniversalRenderPipelineAssetin 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 .
- Everything is already unlocked
- An old save is kept: .
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
CarVisualsrolls 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 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.
Last updated November 16, 2026.