Creating a 2D Game in Unity 4.5

This series shows the entire process of creating a fully featured, polished, 2D game in Unity 4.5!
4.4 (390 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
19,769 students enrolled
Free
Start Learning Now
  • Lectures 38
  • Contents Video: 17 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 4/2015 English

Course Description

This series shows the entire process of creating a fully featured, polished, 2D game in Unity 4.5! We show many of Unity's 2D features, such as the sprite renderer and editor - as well as animation, sound, custom character controllers, and more! At the end of the series, we wrap up by constructing two fully featured levels for our game.

The purpose of this series is to lead by example; and as a result, everything we discuss will be put to immediate use in the form of completing the Level.

What are the requirements?

  • This series expects a beginner-level understanding of C#
  • The free version of Unity 4.5 or higher which you can find on Unity's homepage
  • A very basic understanding of Unity’s interface.

What am I going to get from this course?

  • Manipulate sprites in Unity
  • Create a 2D Character Controller
  • Create a Camera Controller
  • Create a a Level Manager and Point System
  • Implement the concept of Health and Damage, and build a simple AI script for controlling enemies
  • Incorporate Animation into the levels
  • Build a fully functioning Level in Unity

What is the target audience?

  • People completely new to Unity can use this series as an accelerated introduction to the beginner to intermediate features of the engine.
  • People who have never even touched Unity before
  • I wouldnt reccomend this course to anyone looking for advance techniques

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Tile Placement
07:15

This video overviews the course and shows a sneak peek of the game we will be building.

01:04:57

In this video, we start learning how to cut up sprite sheets and place individual sprites in the world.

26:08

In this video, we'll cover Object placement and put together some prefabs for our round tiles and for our player so that we can combine our sprites into objects and reuse them later.

46:37

This video shows the creation of a moving platform script. Sounds basic? Well, in addition, we add a simple Unity editor extension that allows us to visualize our platforms' paths in the editor itself!

Section 2: 2D Character Controller
37:34

We start with a conceptual overview of our controller,and wrap up the video by creating our class and method stubs to be filled in later.

22:47

We make our level ready to be used with our custom character controller. That means we have to create the proper colliders for our tile prefabs.

10:20

We take a look of how to correct mistakes made by using the sprite editor. Hint: it's actually pretty straightforward!

17:39

When we fill in our character controller implementation, we need some way to test it, right? In this video, we create the component that will handle input and tell our (currently empty) character controller what to do.

01:08:33

Things are going to get a bit crazy in this video, where we show how to handle horizontal movement. This may require a bit of math, but we'll walk through the entire implementation line-by-line!

22:46

Fortunately, our vertical movement is very similar to our horizontal movement. In this video, we get the code written that handles both jumping, gravity, and falling.

14:20

Although the game we designed doesn't have any slopes in its levels, our character controller wouldn't be complete if we didn't handle moving up and down angled platforms.

28:08

Speaking of platforms, handling moving platforms actually a little more involved than what you would think! In this video, we write code that allows us to be anchored to a moving platform, no matter what mechanism the platform is being moved by. We also show a use-case for some of the event logic we wrote by writing a jump pad platform component.

27:11

Well, our character is now properly planted on a moving platform: but what happens if a platform moves *into* our character? This video shows how we can add a little bit of logic to our character controller to handle this situation.

09:09

In this video, we create a mechanism to modify parameters of the character controller when the player is inside a certain volume. This can be used, for example, giving different physical rules to areas marked as water.

Section 3: 2D Camera Controller
25:53

In this video, we put together our camera controller that a) constraint to the level bounds, b) gives a nice margin for our player and c) smoothly follows our player around.

21:47

Now that our camera is moving with the player, we add a nice background parallax effect.

13:19

In this video, we show a quick trick to allow proper layering of our particle effects.

Section 4: Levels, Checkpoints, and Points
16:17

We start by stubbing out our level manager and placing our checkpoints.

27:38

Now we get into the meat of the level manager by implementing checkpoints in our game.

24:24

We now put together our basic point system and have the game HUD that displays those points.

36:23

Finally: we create our point stars. Sounds easy, right? Well, we also have to handle the case when a player dies before reaching the next checkpoint. Instead of reloading the scene, we write a reusable system for re-setting up the level in the case of a player death.

Section 5: Damage and Projectiles
46:01

In this video, we implement our player health as well as the floating health bar for our player. We also write a script that can deal damage to the player, without killing him

33:23

Currently, we don't have a lot of visual feedback for taking damage, or getting points. We fix that by creating a floating text manager that allows us to show bits of floating text.

20:10

In this video, we create our cannon object that shoots projectiles in a certain direction.

07:44

We will now create some particle effects for our pathed projectile: because, why not?

41:05

This video sets up the projectile system that can be shared between our player and other actors in the game.

31:53

This video shows the creation of the MICROPHONE OF MASS DESTRUCTION! ... which is the thing that the player shoots when he fires.

31:07

In this video, we show how to use our existing scripts - both our character controller and our projectiles - to create a basic enemy AI.

06:59

We put our instakill and follow path scripts together to create saw obstacles in our game.

15:04

The final video in this section shows how to create health packs for our player.

Section 6: Sound and Polish
16:21

We first show how to use our camera bounds to bound our player to the level. We also allow for different behaviors depending on if the player hits the left, top, right or bottom edge of the level.

18:32

Now we put together some basic sounds for our game!

18:43

It wouldn't be a full game if we didn't have a start screen and multiple levels, right? So in this video, we fix that!

Section 7: Animations
53:30

This video introduces the Animation window and how to create simple keyframe-based animations. We also introduce simple animation controllers that, with a little bit of scripting, can make complex transitions between all of our states!

21:25

This video simply goes through our basic set of player animations.

21:58

We tie our player animations together via a more complex animation controller.

Section 8: Level Design
42:11

This video shows the creation of the first level.

21:25

Phew! We made it! We place our objects to create our second level, and conclude the series!

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

3D Buzz is a company dedicated to providing the world with quality technical education over 3D animation, programming, game design, and much more. We have been producing training videos since 2001, always pushing the envelope in the development of informative lessons with an engaging and personable format. We try to make the viewer feel more like they're involved in a classroom discussion with an energetic teacher as opposed to being stuck in a dry, uninspired, run-of-the-mill training video.

But 3D Buzz is so much more than just training videos. We maintain one of the most helpful online communities on the internet. We do our very best to keep in close contact with our community, and to make sure that when you're here, you feel at home.

Ready to start learning?
Start Learning Now