Personal learning project

Unity game development learning portfolio

2021 - 2022 · 4 Unity prototypes + 8 C# exercises

Four Unity prototypes (rolling-ball arcade, dragon shooter, colour runner, character movement) and eight C# console exercises, covering Rigidbody physics, collisions and triggers, UGUI, scene management, coroutines, Animator, particles and audio. Three Windows builds are available from GitHub Releases.

Background

Between 2021 and 2022 I worked my way from C# fundamentals and Unity basics to four playable Unity prototypes and eight C# console exercises. Most of them started as tutorials or classroom exercises, then grew levels, UI, state machines, particles, sound and my own gameplay tweaks.

The point of this repository is not to show polish, but to keep the learning trail: what the problem was, which API solved it, and how it changed later.

The four Unity prototypes

  • Rolling-ball arcade collection (3D / multi-scene): a main menu links three mini-games — rolling-ball levels, a maze and a pull-the-box puzzle — plus a first-person controller demo. Practised the difference between Rigidbody velocity and force, OnTriggerEnter / OnCollisionEnter, SceneManager transitions, Time.timeScale pausing, coroutines and UGUI.
  • Dragon shooter (2D / vertical shooter): movement with fire-rate cooldown, random enemy spawning, hit flash and explosions, a Boss patrol state machine, and an orthographic camera that adapts to the screen ratio. Practised Instantiate / Destroy, 2D triggers, Mathf.Clamp and UV-scrolling backgrounds.
  • Colour runner (3D / endless runner): the character runs forward automatically, Space jumps, J switches between red and green; landing on a platform of the other colour is fatal. Practised Rigidbody.velocity, collision tags, Animator, particle prefabs and a singleton GameMode.
  • Character movement (3D / character controller): a minimal third-person demo — Input.GetAxis builds a world-space direction, transform.LookAt sets the facing, and the character moves by speed * Time.deltaTime.

C# fundamentals

Eight standalone .NET Framework 4.7.2 console projects covering:

  • singleton managers, object arrays, a boxing match
  • 1D/2D arrays and in-place List filtering
  • object copying, constructors and named arguments
  • weighted gacha draws and cumulative probability
  • turn-based combat, skill states, damage and healing over time
  • Dictionary operations and safe deletion while iterating
  • classes, state constraints and a small interactive menu

Running and downloading

Three games are packaged as Windows 64-bit builds in release-assets/ and published on GitHub Releases. Unzip and run the .exe; if SmartScreen appears, choose “More info -> Run anyway”.

For the Unity projects, install 2021.3 LTS through Unity Hub. The C# exercises load together from csharp-exercises/CSharpExercises.sln in Visual Studio.

Notes

  • The projects keep Assets, Packages and ProjectSettings; generated folders such as Library and Temp are not committed.
  • They use the legacy Input Manager (Input.GetAxis), not the new Input System.
  • Some scripts still contain learning-stage comments, debug code and unused fields; the priority is readable, runnable code.
  • Third-party assets (first-person controller, character model, effects and audio) remain under their original licences and are not covered by the repository’s code licence.

Source and builds: https://github.com/yicongl1/Unity-Portfolio

Technical notes

01 Unity basics: frame loops and three C# patterns Sampling input per frame, consuming it on the physics step, LookAt and deltaTime, plus singletons, weighted draws and state lists. 02 Spawning with coroutines and patrolling with a state machine Coroutine spawners, fire-rate cooldowns, hit flashes, a Boss state machine and orthographic camera sizing.

Related skills

  • Unity
  • Git