Game coding for beginners

EliteIntegrity

/John Horton

About John Horton

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

Comments Off on Spawning new objects in Unity
  • 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

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.

Close