Project Unity Game Switchy Shapes by h-cheema - 6

Games & ProjectsMobile

(PERSONAL PROJECT) ---------- An overview of my mobile game "Switchy Shapes", including code samples .

Unknown VersionUnknown LicenseUpdated 159 days agoCreated on February 7th, 2020
Go to source

Switchy Shapes


Switchy Shapes is a 2D mobile game built from scratch using the Unity Game Engine and C# scripting. It has been a great learning experience and I’m quite happy with the final product. All game programming, UI, UX, sound design, graphics, store management (and so on…) was done by myself.

Code Samples:

  • All code commenting and documentation is from the project’s original files. I would have never been able to finish this project if I never documented my code.

  • LevelLocker.cs

    • Uses the player’s current level to decide which levels are available to play. It instantiates level buttons and locks/disables specific ones which are not completed yet. It also uses a coroutine to make a button (current level button, next page button or previous page button) flash to help the player know what to do.
  • LevelPreprocessor.cs

    • Gathers the needed date to set up a level correctly. This includes things like the configuration of the shape columns, height gap between shapes, and the flow speed of the shapes.
  • LevelSpawner.cs

    • Takes information from LevelPreprocessor.cs and spawns flowing shapes before the game starts.

Technical Details:

  • 2D mobile game
  • Built from scratch using the Unity Game Engine and C# scripting
  • Close to 4000 lines of C# code across 20 scripts
  • Uses Unity Services like Analytics and Monetization
  • User-interface scales to any display
  • “Player” system securely saves/loads player data
  • Game updates are easily implemented and retain player data

Game Features:

  • Available on Android (coming to iOS soon)
  • 90 carefully created levels


  • Screenshot

Web Links:

Show all projects by h-cheema