Unity projects
Unity 2d Shooter
This 2D space shooter tutorial features spaceships, spinning sprites, steadily increasing difficulty, some simple lighting, retro sound effects, and a cool backing track. The whole thing should take no longer than a couple of hours to work through. Be sure to play the game (below) so you will be able to understand what we are […]
Simple patrol & chase AI tutorial with Unity 2D and Mecanim
In this simple Unity AI tutorial, we will create a horde of zombies who wander around the screen between random hidden waypoints until they see the player-controlled object, at which point they will give chase until they lose sight of the player. They will then resume their aimless wandering. It would be very easy to […]
Simple 2D Sprite-sheet animations in Unity
This really quick tutorial uses the Unity Mecanim system to produce the simplest possible sprite-sheet animation. When we are finished our character will be able to stand still or walk left and right. We will achieve this by stopping the sprite-sheet animation when the player isn’t pressing left or right and starting the animation when […]
Unity particle systems: Building a fireplace effect
As you can see above the prerequisite knowledge for completing this project is virtually nothing. That is because Unity makes particle effects easy, very easy. It is true that there are still advanced techniques to learn if you want to have the most spectacular particle effects possible but we will see that getting started is […]
Building an Asteroids game in Unity
Welcome to the Asteroids arcade game project built in Unity. In this step-by-step guide, we will make a reasonably authentic clone of the classic arcade game. If you never had the joy of playing Asteroids then why not go and learn a little about it. Asteroids came out in 1979 and what made it so […]
Lights, sound and a bit more collision
To get us started, create a new Unity project called Sound & Vision. Be sure to set the 2D option, just as we have for all the projects in this series.
Creating an invisible barrier around the screen
In order to make an invisible barrier, we need an empty game object to attach it to. Actually, our […]
Unity UI & data persistence
Adding a Canvas and an EventSystem
Start a new project called UI & Data Persistence. As with all the projects so far, be sure to select the 2D option.
Right-click in the Hierarchy window and select UI | Canvas. Before a project can have any UI objects it must first have a Canvas object. In the future, […]
Collisions and destroying objects in Unity
Preparing the scene and the game objects
First, we need to create a new Unity project. Call it Collisions and Deleting Objects and select the 2D option. Download all the following graphics or you can create your own but be sure to use the same file names. Note that the four wall graphics are significantly scaled-down (shrunk) […]
Spawning new objects in Unity
First, we need to create a new Unity project. Call it Spawning Objects and be sure to select the 2D option.
Download the bob.png graphic below by right-clicking it and selecting Save image as… In Unity add Bob to the project by right-clicking in the Project window and selecting Import New Asset…
Drag bob from the Project […]
Adding a controllable player object in Unity 2d
Fire up Unity and log in to your account. Click New to start a new Unity project. Name your project Controllable Spaceship and Select the 2d option.
Now click the Create Project button and you will have an empty project that looks something like this next image
The first thing we need is a graphic image to […]