Courses / Specialisations & media / Unity and C# 2D Game Development

₹499Self-paced

Unity and C# 2D Game Development

Build a playable, tested 2D Unity game with input states, collisions, animation, UI and save behaviour.

  • Who it's for. C# programmers who know classes and basic testing and want to build their first 2D game in Unity.
  • Before you start. Prerequisite courses: C# Programming, Mathematics for Programmers: Discrete and Applied Foundations.
  • 31 to 52 hours of study with practice
  • 10 modules, 60 lessons
  • 5 guided projects and a final project

What you'll learn

  • Install, pin and document a Unity Editor version and the licence path on the learner's own machine, and run EditMode and PlayMode tests.
  • Import, slice, order and pack sprites and build a tilemap room whose cells and world positions can be computed and counted.
  • Drive a Rigidbody 2D from an input snapshot with acceleration, coyote time, buffered jumps, designed jump height and a clamped camera.
  • Animate sprites with clips and an Animator Controller driven from code, with events, update modes and states that cannot trap the character.
  • Save and load versioned game data safely, then profile, build, playtest and regression-test a finished 2D game.

Skills you'll gain

  • Unity workspace
  • C# components
  • Sprites
  • scenes
  • Physics
  • collisions
  • Input
  • movement
  • Sprite animation
  • the Animator
  • Game states
  • accessibility
  • Data
  • saves

Tools you'll use

  • Unity Editor
  • C#
  • Unity Test Runner (EditMode and PlayMode)
  • Physics 2D
  • Animator
  • Tilemap

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 10 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Unity workspace to Sprites and scenes

    Install, pin and verify a Unity 2D project on the learner's own machine, read its scene and camera in world units, and run a first EditMode and PlayMode test.

    You build: Guided project “Blockout room: sprites, tilemap and a clamped camera”: Intermediate state of the project using the helpers and tests from l03.

  2. 02

    Modules 4 to 7

    Physics and collisions to Game states

    Simulate 2D bodies with explicit physics steps, shape and layer colliders, tell collisions from triggers, query the world with overlap tests, and tune bounce, all proven with stepped PlayMode checks.

    You build: Guided project “Animated hero with a game-flow state machine”: Intermediate state of the project using the helpers and tests from l02, l03, l04, l05.

  3. 03

    Modules 8 to 9

    UI and accessibility to Data and saves

    Scale a canvas across screens, bind HUD values with tested formatting, set controller-friendly menu selection, convert a volume slider to decibels, apply accessibility options in code, and anchor UI to world positions.

    You build: Guided project “HUD, settings and persistent progress”: Intermediate state of the project using the helpers and tests from l01, l02, l03, l05.

  4. 04

    Module 10

    Build and playtesting

    Measure a 2D game against a frame budget, audit its scene cost, produce and verify a player build, run a structured playtest, and turn findings into regression tests and a release check.

    You build: Guided project “Release candidate: profiled build and playtest report”: A player build with BUILD-NOTES.md, a profiler capture summary against a 16.67 ms budget, a triaged PLAYTEST-LOG.csv, two regression tests and a completed release checklist.

Full curriculum

10 modules and 60 lessons, 31 to 52 hours of study

01Unity workspace6 lessons, 3 to 5 hours

Lessons

  • Pinning an Editor version and recording the licence path
  • Reading a new 2D project folder and deciding what to commit
  • The 2D scene: world units, the z axis and orthographic camera size
  • Prefabs: asset values, instance overrides and reverting
  • The Test Runner: EditMode, PlayMode and a first command-line run
  • Reading the Console: logs, warnings, exceptions and unassigned references

After this module you can

  • Write an ENVIRONMENT.md that pins one Editor version, quotes the current support status with a fetch date and records the licence-eligibility self-check.
  • Classify the top-level folders of a fresh 2D project as authored source, project configuration or regenerated cache, and write a version-control ignore list that matches.
  • Triage five Console messages into log, warning or error, locate the failing script line from each stack trace and write the one-line cause and fix.
02C# components6 lessons, 3 to 5 hours

Lessons

  • MonoBehaviour as a component: serialized fields and attached instances
  • The message order: Awake, OnEnable, Start and Update
  • Finding dependencies: serialized references, GetComponent and RequireComponent
  • Frame-rate independent motion with Time.deltaTime
  • Coroutines: yielding frames and seconds, and what pauses them
  • Keeping logic out of the component: a pure C# class with a thin wrapper

After this module you can

  • Attach a script to a GameObject, expose a configurable field, and prove by test that each attached instance owns its own serialized value.
  • Predict and record the order in which Awake, OnEnable, Start and Update run for a component added at runtime, and state two things the order does not guarantee.
  • Move a rule into a plain C# class, test it in EditMode without a scene, and wrap it in a component that only forwards time and events.
03Sprites and scenes6 lessons, 3 to 5 hours

Lessons

  • Importing a sprite: pixels per unit and world size
  • Slicing a spritesheet and setting pivots
  • Sorting layers and order in layer: deciding what draws in front
  • Packing sprites into a sprite atlas and planning its size
  • Painting a tilemap room and counting cells in code
  • Converting between world positions and tilemap cells

After this module you can

  • Predict the world size of an imported sprite from its pixel size and pixels-per-unit value, and choose the value that gives a stated size.
  • Compute how many sprites a grid slice yields from the sheet and cell size, cut a sheet in the Sprite Editor, and place the pivot where a character's feet touch the ground.
  • Convert a world position to a grid cell and a cell to its centre world position for a non-unit cell size, including negative coordinates.
04Physics and collisions6 lessons, 3 to 5 hours

Lessons

  • Rigidbody 2D, gravity and stepping the simulation by hand
  • Collider 2D shapes, scale and composite colliders
  • Layers and the collision matrix
  • Collision and trigger callbacks: OnCollisionEnter2D and OnTriggerEnter2D
  • Physics queries: OverlapCircle, ground probes and trigger rules
  • Physics Material 2D: bounce and friction tuning

After this module you can

  • Predict a falling body's velocity after a stated number of explicit physics steps, and show that a static body and a zero gravity scale do not fall.
  • Choose a box, circle or capsule collider for a stated body, compute its world bounds under transform scale, and merge adjacent tiles into one composite collider.
  • Create a Physics Material 2D, set its bounciness and friction, and compare rebound heights of two materials as percentages of the drop height.
05Input and movement6 lessons, 3 to 5 hours

Lessons

  • Separating input from behaviour with a per-frame snapshot
  • Input actions: maps, actions and bindings in an asset
  • Horizontal movement: accelerating a Rigidbody 2D toward a target speed
  • Jumping with coyote time and a jump buffer
  • Jump height from gravity: launch speed, apex and variable-height jumps
  • Keeping the camera inside the level: follow, clamp and optional Cinemachine

After this module you can

  • Convert raw direction signals into one input snapshot with a deadzone and opposite-key cancellation, so gameplay code can be tested without a keyboard.
  • Create an input actions asset with a Gameplay map and actions Move, Jump and Pause, bind each to at least two devices, and verify the asset's contents by reading it as data.
  • Compute a camera centre that follows a target but never shows outside the level bounds, with exponential smoothing, and state what Cinemachine's Confiner 2D adds.
06Sprite animation and the Animator6 lessons, 3 to 5 hours

Lessons

  • From sliced frames to a sprite animation clip with a known length
  • Animator Controller states and parameters driven from code
  • Transitions, exit time and avoiding stuck states
  • Mapping movement to animation parameters and facing direction
  • Animation events: calling code at a frame of a clip
  • Animator update mode: animation under pause and timeScale

After this module you can

  • Build a looping clip from sliced sprites at a chosen frame rate, predict its length in seconds and compare the prediction with the clip's reported length.
  • Create an Animator Controller with Idle, Run and Hurt states, set parameters from a script, and verify the current state name in a PlayMode test.
  • Choose the Animator update mode so gameplay animation stops with a pause and menu animation keeps running, and prove both at timeScale 0.
07Game states6 lessons, 3 to 5 hours

Lessons

  • A game-flow state machine with a legal-transition table
  • Pausing safely: timeScale, unscaled time and restoring the previous scale
  • Loading scenes: single, additive and an invalid name
  • Health, damage and an invulnerability window
  • Wave schedules and deterministic spawn sequences
  • Score, win and lose conditions, and a clean restart

After this module you can

  • Model Boot, Menu, Playing, Paused and GameOver as an enum-based state machine whose illegal transitions are rejected and reported.
  • Implement pause and resume that freeze timed gameplay at timeScale 0, keep unscaled UI time running and restore the exact previous scale.
  • Implement a session object with score, lives, a win and a lose condition, and prove that restart returns to the initial state while keeping the high score.
08UI and accessibility6 lessons, 3 to 5 hours

Lessons

  • Canvas Scaler: reference resolution and the scale factor
  • Binding HUD values: formatted text and fill amounts
  • Menu selection for keyboard and gamepad: first selected and focus return
  • Audio feedback and a volume slider that maps to decibels
  • Accessibility options implemented in code: text scale, shake and flashes
  • Anchoring UI to a world position with WorldToScreenPoint

After this module you can

  • Compute the canvas scale factor for a screen size, a reference resolution and a match setting, and choose the match that keeps the layout's critical dimension.
  • Format health and ammo values for display and compute a fill fraction for an Image set to Filled, updating the view only when the value changes.
  • Compute the screen position of a world point for an orthographic camera and use the camera call to place a floating label, matching within a pixel.
09Data and saves6 lessons, 3 to 5 hours

Lessons

  • JsonUtility round trips: serializable classes, lists and wrappers
  • Writing a save file safely under persistentDataPath
  • Save versions and migrating an old file
  • Missing and corrupt save files: results, fallbacks and a backup
  • PlayerPrefs for settings versus files for progress
  • Save slots and restoring a played state

After this module you can

  • Serialize a save-data class to JSON and back, wrap a list in a class because the top level must be an object, and list what JsonUtility does not accept.
  • Build the save path from persistentDataPath and write the file via a temporary file so a crash never leaves half a save.
  • Save three slots with metadata, and prove that a played state (player position, score and items) is restored exactly after destroying and reloading it.
10Build and playtesting6 lessons, 3 to 5 hours

Lessons

  • The Profiler and a 16.67 ms frame budget
  • Auditing scene cost: renderers, colliders and atlas pages
  • Build Profiles and a first player build
  • Building from a script and reading the build result
  • A structured playtest: tasks, observations and a triaged bug list
  • Regression tests, a results summary and a release check

After this module you can

  • Open the Profiler, record a short session, and compute average frame time, worst frame and the percentage of frames over a 60 fps budget from the recorded list.
  • Count the sprite renderers, colliders and distinct textures in a scene and compare them with a written budget, naming the first item to reduce.
  • Turn two playtest findings into automated regression tests, summarise a Test Runner results file in code, and complete a release check.

What you'll build

5 guided projects along the way, then a final project.

  • Blockout room: sprites, tilemap and a clamped camera

    after module 3
  • Platformer controller with stepped physics proof

    after module 5
  • Animated hero with a game-flow state machine

    after module 7
  • HUD, settings and persistent progress

    after module 9
  • Release candidate: profiled build and playtest report

    after module 10

Final project

A playable, tested 2D game with input states, collisions and save behaviour. Choose one option: Side-view platformer; Top-down collector; Arcade avoider.

What you submit

Source and artifact submission: the Unity project (without the cache folder) in a repository, the built player folder, ENVIRONMENT.md, ASSETS.md with a licence line per asset, BUILD-NOTES.md and the Test Runner results XML.

How it's reviewed

Trainer review against the rubric: Correctness (30%): every stated behaviour is demonstrated and the hidden-case categories in the lessons were considered.

Where you'll use it

  • Prototype a 2D game mechanic and test it with stepped physics before building levels.
  • Profile a build and run a playtest, then record the issues found.

Roles that use these skills

  • Game developer
  • Unity developer
  • Gameplay programmer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before I start?

Prerequisite courses: C# Programming, Mathematics for Programmers: Discrete and Applied Foundations. Prerequisite courses: C# Programming (classes, interfaces, exceptions, file I/O and basic unit testing are assumed and not re-taught) and Mathematics for Programmers (vectors and basic functions, used for movement, jump height and coordinate conversion). Accepted equivalent: any prior C# project with classes and file reading plus the 20-minute diagnostic below. Diagnostic (unscored): write a C# class Counter with a method that adds an integer and rejects negatives, and a test that calls it three times; compute by hand the height reached by an object launched upward at 8 m/s with gravity 10 m/s squared (3.2 m). A learner who cannot do both should finish the earlier course or the relevant part of the earlier course first. Hardware: a Windows, macOS or Linux machine able to run the Unity Editor and several gigabytes of downloads; the Editor needs a capable PC or Mac and cannot run on a phone or in a browser. There is no hosted student sandbox: every lab runs on the learner's own machine.

Do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Module and final assessments are planned; the module pass rule is proposed, not final. Certificates are issued by OUTLEARN staff; nothing is issued automatically.

Where do the labs run?

The learner's own machine with the Unity Editor and the Test Runner. EditMode tests cover pure helpers and asset checks; PlayMode tests step physics with Physics2D.Simulate or wait with timeouts; artifact lessons produce text or CSV.

Be first in when Unity and C# 2D Game Development opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹499Opens soon
Notify me