Game coding for beginners


/John Horton

About John Horton

Writer at
  • bouncing-lit-sprites-in-the-game-view-header

Lights, sound and a bit more collision

By |

This is the last Unity project that we need to do before we make a full working game. This quick, fun project will make some noise, introduce another type of collider(Edge Collider), make a basic material and use some point lights. In around 30 minutes we will see spinning, glowing, beeping ball sprites bouncing all over […]

  • highscore-remembered

Unity UI & data persistence

By |

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 […]

  • particles-in-unity-2d-simple-physics-simulation-header-image

Collisions and destroying objects in Unity

By |

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. […]

  • Unity-2d-spawning-loads-of-game-objects-feature-image

Spawning new objects in Unity

By |

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 […]

  • Unity-2d-deafult-gravity

Adding a controllable player object in Unity 2d

By |

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. […]

  • Unity-and-c-sharp-part-2

Unity & C# part 2

By |

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 […]

  • Unity 5, 2d interface

Unity & C# part 1

By |

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 […]

  • unity-5-personal-edition-sign-in-screen

Setting up Unity 5

By |

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 […]

  • C# beginner coding tutorials

C# game coding level 1

By |

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 […]

  • C# beginner coding tutorials

Game variables in C#

By |

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 […]


By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.