Dustin PPJ 05

Completed Tasks

  • Changed the rules of tower spawning so you have to build out from your base.(5h)
  • Added in an instant tower kill blessing (1h)
  • Miscellaneous UI fixes (1h)

What Went Well

I know that there are a few games out there that if they want something to die instantly rather than call some instant die function they just apply an absurdly high amount of damage to it and hope it dies. That was the method I chose for our tower kill function because we already had a damage tower function written and just instantly destroying the tower could have broken any number of other things the tower does.

I also changed the rules of tower spawning from each player being able to place on halves of the field to players having to build outward from their bases with each tower placed adding to the player’s spawnable area and each tower lost decreasing that area. Hopefully this gives a greater tension and feel of winning/losing a war.

What Could Have Gone Better

I did not finish the tower spawning change in time for us to include it in the build and also we were unsure how to convey to the player the area that they were allowed to spawn on.

Upcoming

Ahead it looks like more features fixes and code cleanup. Almost the final stretch.

Borrowed Lines

Completed Tasks

  • Locking tower spawning to a grid (4 hrs)
  • Implementing tower spawn time and cost (2hrs)

What Went Well

One of the general rules of programming is that if whatever you’re trying to do someone else has already done it and how they did it is somewhere on the internet and not that hard to find. At the very least, something a programmer is trying to do can be broken down into smaller steps which someone has surely done. I had to figure out how to get the towers to lock to a position on a grid on spawn but no one had a solution for that online. So I had to settle for using a spawner based on mouse click and adapting that to our cursor setup. Then it was a matter of coming up with a clever system to make it easy for us to edit these tiles to mark them as roads.Screenshot (2)

What Could Have Gone Better

I don’t know how well the other towers will work with the grid but I am fairly confident that I implemented well enough to handle their shapes

Upcoming

Next comes talking more about design and how we want things to play out. Our base is pretty much done, next comes figuring out how the other towers function and maybe adjust the rules of where you can spawn towers.