Beta in a couple of weeks
|
This week we started working on the beta build of our game. At the presentation we did not get any criticism directed at the programming side of the game, so we did not see anything big that needed to be fixed. So instead we started discussing about what had to be added to the game. The most obvious thing is off course path finding so that we can actually use a map instead of just an open field like in the alpha. Some other things that had to be implemented was: more power ups, more enemies, more towers and the seed combination system. We also need GUI and different states. I took the tasks to add more power ups as i had implemented those that were already in the game. I also implemented a main menu. And also implemented a method so that power ups would drop when towers were destroyed. First i had to fix some things in the player class, when the player walk diagonally he would get a lot more speed, so i changed the logic so that when you pressed two movement buttons the x and y values would change with about: movement value divided with 1.4. This gave the same sense of speed when the player was moving diagonally. The power ups that had to be added was: One that healed all the damaged towers. This one is very simple, when the player picks up the power up, it checks the Entity vector for all active towers and calls the addhealth() method. The other power up was one that slowed all the enemies on the screen. This one works similarly as it checks the Entity vector for all active enemies and calls the method for slowing them down. The method has two overload variables, one for percentage slowed and the second one for a duration. I had a lot of problems trying to implement a class that was supposed to handle power up dropping that had method that the towers would call when they were destroyed. I tried making this class static, but i got an error saying “vector is not a member of std”. So I tried making the class non static but i still got the same error and i could not figure out what was the cause of this. So instead i wrote a method in the tower class that handles the spawning of power ups. I also added a very not so good looking main menu. It is functional and you can either enter the game or exit the program. But as there were no graphics for the main menu yet it looks really ugly.
|
