Game coding for beginners


/John Horton

About John Horton

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

Comments Off on Adding a controllable player object in Unity 2d
  • 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 […]

Comments Off on Unity & C# part 1
  • 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 […]

Comments Off on Setting up Unity 5
  • 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 […]

Comments Off on C# game coding level 1
  • 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 […]

Comments Off on Game variables in C#
  • C# beginner coding tutorials

Making use of variables in C#

By |

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

Comments Off on Making use of variables in C#
  • C# beginner coding tutorials

Conditions and decisions

By |

Condition checking in games is all about making decisions. How do we “know” if the player has completed the level or crashed a ship? How do we detect if the ball has reached the edge of the screen and needs to bounce back the other way? C# has the keyword which helps us detect […]

Comments Off on Conditions and decisions
  • C# beginner coding tutorials

Loops in C#

By |

Loops are how we repeat the same part of the code more than once. This can simply mean doing the same thing until the code being looped over prompts the loop to end or it could be a predetermined number of times as specified by the loop code itself.

We will look at two types of […]

  • C# beginner coding tutorials

Structuring C# games with methods

By |

C# Methods allow us to organize and our code into named, logical, sections. As our C#/Unity game projects become more and more advanced with exciting features and deep systems, methods will be one of the constructs that make it possible. We have already seen the Unity method in the Unity & C# part 1 […]

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.