
Learn to build a 2D Unity physics-based puzzle game where a paint mechanic guides a ball through traps, featuring endurance mode, scoring, lives, and automated level selection.
Learn to build a 2D Unity physics puzzle where a gravity-driven ball follows drawn lines, earns score from green areas, loses lives to red traps, and triggers a scrolling camera.
Set up a new Unity project with Unity Hub, choosing version, name, and location, then organize scene, game, console, project, hierarchy, and inspector windows and save a layout named optimum.
Configure the main camera with fixed aspect ratios for mobile and desktop, using 9 by 16 for mobile and 16 by 9 for desktop, then set the correct resolution.
Unzip atlas, place it in assets/textures, set the sprite type to 2d and UI, enable multiple, and auto slice; rename items like triangle, circle, square, and mine.
Set up playfield borders by adding two squares with box collider 2D, then parent them to the main camera and ensure positive z positions for visibility.
Set up the player as a 2D circle with a circle collider and a Rigidbody 2D, tune scale and gravity, and enable collisions with walls in a physics-based puzzle.
Create and organize essential scripts in the assets/scripts folder for a 2d physics based puzzle game, including traps, pen, game manager, a dots painter, and destroy after time.
Create the first trap prefab by setting up a prefab and spawn point, adding spike visuals and a score collider, and wiring score and trap scripts for reusable, randomized instantiation.
Create multiple spikes-based traps by duplicating prefabs, positioning them precisely, and combining trap parts with score fields to test scoring and life loss in 2D Unity puzzles.
Use OnTriggerEnter2D in trap script to detect when the player enters a collider and print 'trap has been triggered' to the console in Unity, with colliders on trap and player.
Learn to trigger score only once in a Unity 2D game by using a boolean flag, updating the score script, and validating with debug mode.
Create a game manager singleton to track score and lives for endurance mode, and expose public methods to handle game over and add score.
Create and track score and lives in a Unity 2D physics puzzle game, update UI text elements for score and lives, and implement a dedicated update function.
Create text fields for score and lives, connect them to the game manager, and implement start and update text elements to reflect score and lives in Unity.
Learn to implement a draw mechanic that spawns dots as the ball moves in a 2D physics scene, using a dot prefab with a circle collider and timed destruction.
Implement a destroy after time behavior in Unity using the Start method to destroy the game object after seconds, and test with dot prefab to paint a row of dots.
Paint dots with the mouse to guide a ball through a 2D maze in a Unity physics-based puzzle, using a dot prefab that destroys after three to five seconds.
Implement a robust game over sequence in Unity 2D. Reset the ball to its start position relative to the camera, clear its velocity, and manage lives via the game manager.
Move the camera down to follow the ball when its y position is at or below the camera, using smooth interpolation.
Learn to spawn traps in a 2d physics puzzle game by measuring fall distance and triggering new traps at a spawn point using a game manager script.
Store trap prefabs in a public list and spawn them at a public spawn point by a random index, instantiating the chosen trap and tracking it in a dynamic list.
Delete traps near spawn by iterating the spawn traps backwards and destroying those with a y position above the main camera, then update the list to remove destroyed entries.
Learn to manage memory by deleting traps above the camera at set intervals using a coroutine, with a configurable distance, starting on start and stopping on game over.
Learn to create and animate a rotating saw blade trap prefab for a 2D Unity puzzle game, including sizing, centering, colliders, triggers, and integrating with trap scoring and spacing.
Create and rotate trap prefabs in Unity, duplicating and renaming them for the trap prefabs list and game manager, then configure colliders, triggers, and mine animations to test gameplay.
Create a game over UI in Unity by overlaying a semi-transparent panel with a game over title and score display, and restart and back-to-menu buttons wired to scene management.
Set a game over flag and stop painting dots when the game ends. Expose the flag publicly, hide it in the inspector, and draw dots only if not game over.
Recalculate the trap spawn point from the current position using a new vector3 and a small offset. Use the stored last position and distance to ensure consistent spacing between tiles.
Create a Unity 2D menu scene with a scalable canvas and endurance mode button, load the endurance scene on click, and tune UI elements and animator assets for aspect ratios.
Create a new 2D Unity level with a ball player, a bucket-like goal, and traps using 2D colliders and a rigidbody with gravity to enable physics-based puzzles.
Update the game manager to support multiple game modes, encapsulating level and endurance logic, and implement triggers, colliders, and traps to guide player learning in a 2d physics puzzle environment.
Learn to implement the game over screen in a 2D physics puzzle with endurance mode, using prefabs for the game over panel, and wiring restart and back to menu actions.
Implement a win panel and win logic tied to the game manager’s mode and score, triggering a level mode win screen with UI borders.
Stop the ball on game over by disabling its rigid body, zeroing velocity, and deactivating or destroying the ball with an explosion in this Unity 2D physics based puzzle game.
Create a 2D particle explosion for player death by building an FX prefab with a circle texture, burst emission, size and lifetime curves, and a destroy after time script.
learn how to instantiate a particle effect on player death, spawn and deactivate the ball at its position, reset the level, and restart using prefabs and endurance mode logic.
Reuse existing level content to create new levels by duplicating scenes and adjusting settings, traps, and progression; test by playing and assemble levels into a loading menu.
Build a level select scene in Unity 2D by arranging level buttons in a canvas grid, using a grid layout and scripts to load levels.
Duplicate the endurance button to create a level select button, configure it to load the level select scene, and update the text, then save and test in play mode.
Learn to automate your level select in Unity by dynamically instantiating level buttons from a prefab, wiring menu elements to pass level names, and arranging them in a grid layout.
Update level buttons by accessing the text component in children and converting the index to a string, fix level loading, add 2d box colliders to walls, and propagate prefab changes.
Optimize menu and level select design by anchoring ui elements to the canvas, using snapping and anchors for responsive layouts across resolutions, and customizing button highlights and grid layouts.
Remove debug prints and unused code to clean the project, ensure all levels and the menu scene are in build, and enable endurance mode by increasing gravity after a score.
Explore how to build a Unity 2D physics-based puzzle game with a level select, endurance mode, canvas scaling, interactive buttons, and particle effects for hits and wins.
In this Course you'll learn how to create a Physical based Puzzle games with Unity Engine. Physical games are loved by a lot Players all over the world. I will show you step by step how you can create Physical based 2D Puzzle games.
This course is a Beginner course, so if you have trouble in any case, write me a message or Q&A, and i'll help as best as i can.
If you are beginner, you might have some trouble to follow, but the videos will guide you through the complete course. Don't forget you only become better if you repeat things and keep on learning!
So we create Systems which will give us the freedom to:
C# (Monodevelop)
A Pen Mechanism to draw dots and lines
Trigger Actions to Lose Lives or get Score
An Endurance Game mode
A Level Select Menu for Single Levels
Unity (2019.1)
we create an Endurance unlimited Game Mode
we create Game Logic which handles different Game Modes
we create a main menu scene to choose the Mode to play
we create a Game Over scene panel and Win panel
we create 2 simple Levels
we create a simple Particle Effect
we animate Saw Blades and Mines
we learn physics and all needed components
Course Material
I provide the following Material with the Course:
Texture Atlas for basic game design
a Circle Grafic
You have to write the code on your own, i do not provide the final scripts!
All other graphics for Menu's, Icons, Images or Buttons need to be created on your own.
All Materials i provide are for education only and should not be in your final release!
Conclusion
In the end of this course you will have a fully functional 2D Physics Based Puzzle Game.
Challenge
After you have created nice Menus, Buttons, and maybe additional content, upload the Game to any Gaming Website, Google Playstore, Apple Store or even Windows Store or Steam. Try to create at least 20 Levels and extend the Prefabs for the Endurance Mode.
So what are you waiting for?
Let's make your dream game a reality!!
Level: Beginner
Video Course Length: ~5 hours
Unity Version required: 5.3+