If we are going to make a real game we will need to create a simple HUD to show things like score, highest score and perhaps some other game stats as well. In addition, our game will need a UI, buttons checkboxes etc, for things like starting. pausing and perhaps player inventories. This project will […]
This project will allow us to click on the screen to spawn a new particle. The particles will fall and bounce around, inside the four walls of the scene. The white jagged sprite is our controllable bat that we can use to make the balls bounce around a little more interestingly than they otherwise would. […]
In this project we will begin to see the power of C# classes as reusable templates for objects. We will create a simple character sprite and then learn how to detect mouse-clicks to spawn as many duplicates/clones of the object as we like.
First we need to create a new Unity project. Call it Spawning Objects […]
This is the first real project. We won’t just be exploring c# or playing with Unity concepts, we will make a small part of a game. Let’s learn how to put a spaceship into a 2d world and see how we can move it around the screen.
Fire up Unity and log in to your account. […]
In this project we will play around with everything we learnt in the methods and loops C# tutorials. In addition we will explore some more Unity and general game coding concepts including the game loop. We will see more Unity methods as well. By the end of this project we will be really close to […]
In this project we will use Unity to practice some C# skills. We won’t be making anything that resembles a game but everything we do will be preparing for a few projects time when we start making controllable characters and eventually build up to a fully playable game.
Start Unity and click on New Project. Enter […]
This getting started project tutorial with with Unity 5 is so simple I contemplated not having it at all. It seemed appropriate, however, because the C# tutorials as well as the Unity projects which follow this one start from from the very beginning. If you are confident you can probably just download Unity and follow the […]
This set of C# coding tutorials is for you if you are completely new to programming or the C# language. You will learn all you need to know to code C# games as quickly as possible. You could be tinkering with your own game projects within a few hours.
There are plenty of game-related mini-projects in […]
When we code a game in C#, whether with Unity or any other tool, we need to ‘know’ what the situation in the game is. As an example, things like how many lives the player has, how many people connected to game-lobbies, where in the game level all the players and enemies are, etc. The […]
Having just learnt what C# game variables are and that they store values that represent the data in our games, it is probably obvious that these values held by our variables will need to be changed as the game is played. For this we need C# operators. Operators in C# are just like mathematical operators we used in […]