This is the Complete Unity Developer - one of the most successful e-learning courses on the internet! Completely re-worked from scratch with brand-new projects and our latest teaching techniques. You will benefit from the fact we have already taught over 360,336 students game development, many shipping commercial games as a result.
You're welcome to download, fork or do whatever else legal with all the files! The real value is in our huge, high-quality online tutorials that accompany this repo. You can check out the course here: Complete Unity Developer
Build a Speulnky-like level in under one minute using a procedural Tilemap smart brush that you build yourself! (Section REF: TV_CUD)
This is a Unity project. If you're familiar with source control, then "clone this repo". Otherwise download the contents, and navigate to Assets > Levels
then open any .unity
file.
This branch is the course branch, each commit corresponds to a lecture in the course. The current state is our latest progress.
Here are the lectures of the course for this section...
In this video (objectives)…
- We'll be taking on Tilemap.
- A note about where this section fits within the course.
After watching (learning outcomes)…
Explain to a fellow student roughly what we're building, and why this is awesome stuff to know.
In this video (objectives)…
- Be clear on the core game design for this section.
- Understand the creative options that each student has for making this game their own.
After watching (learning outcomes)…
Explain to a fellow student the design of what we'll be building and to start exploring options for creativity.
In this video (objectives)…
- Import sprite sheets to be used for our platformer.
- Use the automatic or slice-by-grid options in Unity to slice our sprite sheet into individual sprite images for our game.
After watching (learning outcomes)…
Be capable of slicing sprite sheets to make individual assets.
In this video (objectives)…
- Create multiple tile map layers.
- Build multiple tile palettes.
- Paint a simple level.
After watching (learning outcomes)…
Able to import a sprite sheet, slice it up, create tile palettes and paint a simple level layout.
In this video (objectives)…
- Download the Unity 2D asset.
- Create rule tile rules.
- Paint additional platforms using rule tile.
After watching (learning outcomes)…
Create a rule tile and set up the logic for its rules.
In this video (objectives)…
- Create player idle animation clip from sprite sheet.
- Add animation to Animator Controller.
- Add Sprite Renderer and Animator to Player character.
After watching (learning outcomes)…
Created 4 frames of 2d character idle animation which plays automatically when the game plays.
In this video (objectives)…
- Create animation clips for run and climb.
- Add animation states for each animation clip type.
- Add bool parameters to switch between animation states.
- Add transitions between the animation states.
After watching (learning outcomes)…
Able to construct an animation state machine with transitions and triggers.
In this video (objectives)…
- Add RigidBody and collision to the player.
- Set up composite collision on our environment.
After watching (learning outcomes)…
Drop our player from a height and have it land on the platform.
In this video (objectives)…
- Context for the gameplay functionality we are about to create.
- The best way to learn and become better at being a programmer.
After watching (learning outcomes)…
Understand how to get even more value from this course in terms of your learning and skills.
In this video (objectives)…
- Create Player class.
- Import CrossPlatformInput.
- Move the player's RigidBody horizontally.
After watching (learning outcomes)…
Move the player horizontally using CrossPlatformInput.
In this video (objectives)…
- Introduce Mathf.Abs and Mathf.Sign.
- Pseudocode for flipping character sprite.
- Flip character sprite based upon player having horizontal velocity.
After watching (learning outcomes)…
Flip the player character's sprite whenever the character has horizontal velocity.
In this video (objectives)…
- We discuss the difference between caching and calculating.
- Why did we set up the flip sprite the way we did rather than starting with an isFacingRight bool.
- Ben makes a bad joke at the end of the video.
After watching (learning outcomes)…
Greater understanding of the cache versus calculate options we have.
In this video (objectives)…
- Use code to set the animation transition bool.
- Make the player transition to the running animation when the running transition condition is called in our script.
After watching (learning outcomes)…
Make the player's run animation state be triggered from code.
In this video (objectives)…
- Revise how velocity is being applied to our player's RigidBody.
- Add a positive y velocity to cause the player to jump.
- Tune the global gravity and player jump speed to give the right feel for our game.
After watching (learning outcomes)…
Make your player jump and fall in a way which feels good to play.
In this video (objectives)…
- Review how layers work as a way to apply the same functionality to many GameObjects.
- Implement IsTouchingLayers for our collision check.
- Only allow the player to jump if he is touching the ground.
After watching (learning outcomes)…
Make the player jump only when touching the ground layer.
In this video (objectives)…
- Create ladder tile.
- Set up the climb tilemap, sorting layer and collision layer.
- Transition to climb state if player is touching ladder.
- Move player's y velocity when input is received.
After watching (learning outcomes)…
Move the player up and down on a ladder with appropriate climbing animation state.
In this video (objectives)…
- Fix bug where player does not transition out of climb state.
- Change gravity while on ladder to stop player sliding back down.
After watching (learning outcomes)…
Able to stop player sliding on ladder.
In this video (objectives)…
- Review the fundamental differences between the camera types.
- Explain the reasons why we might use one camera over the other.
After watching (learning outcomes)…
Understand the differences in perspective and orthographic cameras.
In this video (objectives)…
- Import and set up Cinemachine.
- Create a Cinemachine brain and Cinemachine virtual camera.
- Tune the dead zone, dampening and look ahead of our camera.
After watching (learning outcomes)…
Be skilled at setting up a 2D follow camera using Unity's Cinemachine.
In this video (objectives)…
- Create physics layers for Player and Background and alter the collision matrix so that the correct things can collide with one another.
- Create a bounding box for the Cinemachine confiner.
- Tune level and camera so that the player can only see what we want them to see.
After watching (learning outcomes)…
Implement the Cinemachine confiner extension.
In this video (objectives)…
- Add a state-driven camera to the scene.
- Link the player animator states to the camera states by creating additional cameras.
- Adjust the blending between cameras.
- Experiment with camera shake.
After watching (learning outcomes)…
Implement state-driven cameras using Unity Cinemachine.
In this video (objectives)…
- Add physics material to stop sticking to wall.
- Add additional collider to represent player's feet.
- Only allow feet to determine if player is touching the ground.
After watching (learning outcomes)…
Prevent funky wall behaviour.
In this video (objectives)…
- Import enemy sprite and set up required components.
- Script a way for the enemy to flip when it reaches the end of a platform.
After watching (learning outcomes)…
Create an enemy that moves along platforms, turning when it reaches the end.
In this video (objectives)…
- Trigger player death when player collides with enemy.
- Disable player control when player is in death state.
- Implement some kind of dramatic death reaction.
- Change player animation state when dying.
After watching (learning outcomes)…
Create vulnerability in the player by triggering a dramatic death.
In this video (objectives)…
- Import some spikes.
- Set up a "Hazards" tilemap.
- Build the behaviour of the "Hazards" tilemap so that it harms the player.
After watching (learning outcomes)…
Create hazards in your levels which harm the player.
In this video (objectives)…
- Look at the method of laying out multiple scenes in the hierarchy.
- Discuss level flow.
- Create our first 3 levels for the player.
After watching (learning outcomes)…
Create the flow for the first 3 levels for the game.
In this video (objectives)…
- Create a level exit portal sprite.
- Create coroutine for loading next level.
- Set up build scene indexing.
- Load next scene when player enters portal.
After watching (learning outcomes)…
Load the next scene when the player enters a portal.
In this video (objectives)…
- Add a start game button.
- Add a success scene.
- Add a replay game button.
After watching (learning outcomes)…
Be able to create start and success screens with corresponding buttons.
In this video (objectives)…
- Create singleton for Game Session script.
- Determine whether player has any lives remaining.
- Reload current level or reset game to main menu if player has no lives.
- Call the public method that processes the player death within Game Session class.
After watching (learning outcomes)…
Elegantly process the player death, loading and reseting of game.
In this video (objectives)…
- Import and animate coins.
- Create mechanism where the coins are picked up and destroyed.
After watching (learning outcomes)…
Start the process of creating a coin pickup which destroys when player touches it.
In this video (objectives)…
- Examine the different ways to ensure SFX is not destroyed when game object is destroyed.
- Implement PlayClipAtPoint() and reposition so that it is next to the camera.
After watching (learning outcomes)…
Trigger a SFX that persists even when the Game Object which triggered it is destroyed.
In this video (objectives)…
- Create UI text for lives and for score.
- Show the lives and score text based upon the starting values.
- Update lives and score when player dies or picks up coins.
- Apply the singleton pattern to lives and score so that they persist when player dies.
After watching (learning outcomes)…
Display and update score and lives on the UI and persist their values when player dies and respawns.
In this video (objectives)…
- Create a scene persist script that uses a singleton pattern to not destroy any children objects (such as pickups).
- Within our scene persist, check if the current build index differs to starting build index.
- Destroy scene persist object if we move on to the next level.
After watching (learning outcomes)…
Create a system to allow objects to remember their state within a scene.
In this video (objectives)…
- Create a new water layer with some watery looking water on it.
- Create a new script which allows us to scroll the water vertically to create a time hazard.
After watching (learning outcomes)…
Create a moving water hazard for the player to avoid.
In this video (objectives)…
- Well done for finishing this section.
- There is so much that you can do with this platformer now to make it really exciting to you.
After watching (learning outcomes)…
Onwards and upwards!