Monday, 31 January 2011

Tutorial 14 : Polishing the Game

In this, the last tutorial in the series, I will show you how to add a bit of polish to the game by adding a few key features to our game :

  1. Giving the player money when he kills an enemy.
  2. Removing a life when one of the enemies reaches the end of the path.

Both of these things will be implemented in the wave class, however before we make any changes to that we must first make some of the player’s properties settable!

Friday, 21 January 2011

Tutorial 13 : Adding the Slow Tower

As a few of you have requested, I will write another tutorial on creating a custom tower type. In this tutorial I will show you how to create a tower the makes the enemies move slower when they are hit with a bullet, and hopefully by the end of this tutorial you will see how easy it is to extend the tower class to make all sorts of different towers!

For simplicities sake, I am only going to show you the changes needed to create the new tower class and not include any details about adding a new button or changing the player AddTower method (If you need help on this see Tutorial 12). However I will provide some placeholder textures that you can use for the slow tower :

slow towerslow buttonslow hoverslow pressed

Tuesday, 18 January 2011

Tutorial 12 : Adding a New Tower Type

Sorry for the delay, I have had a very busy at the month! In this tutorial I will show you how to add in two type of cannon, the Spike tower. This tower will be able to shoot 8 bullets in eight different directions at a time.

image

This should be pretty straight forward seeing as we have designed the Tower class to be as extensible as possible, although we will have to make several adjustments to some of the other classes.

Thursday, 23 December 2010

Tutorial 11 : Creating the GUI (Part 2)

In this tutorial we will be adding a generic button class to our project, and then we will be using this class to add buttons to our toolbar. We will keep this button class a general as possible so it can be re-used throughout the project.

Friday, 17 December 2010

Tutorial 10 : Creating the GUI (Part 1)

Sorry for the delay in tutorials, but real life got in the way again. In this tutorial we are going to make a start on our games interface, the interface I'm going to show you how to make is going to be incredibly simple for now.

By the end of this tutorial we will have a toolbar that runs along the bottom of our game window that will show the player some useful information.

Friday, 29 October 2010

Tutorial 9 : Multiple Waves

In this tutorial we are going to create the class that will handle the creation of our waves, update our waves, and then move the player onto the next wave when the previous one has finished.

This will be one of the most important classes in our game. We are going to store all our waves in one big queue, and just move through them one by one with a short period of time in-between waves so the player has time to breath and make new towers. This class will also determine how many enemies we create per wave, so we can make the waves harder as time progresses.

Tuesday, 5 October 2010

Tutorial 8 : Waves (Featuring Tower Modifications)

In this tutorial we will be focusing on creating so called “waves” of units.
We will start off by fixing some nasty bugs that I overlooked in the last two tutorials.
Then we will move onto creating our Wave class. This will contain information such as how many enemies should be created this wave, and which of these created enemies are still alive. It will be responsible for creating, updating and drawing the enemies.

For the sake of simplicity I am not going to add in any “boss levels” or “fast levels” etc. for now as that would mean coming up with some pretty difficult formulas!