Portfolio Website Patrick Noten

Divider Divider

Endless Tower Defence

Divider
C#, Unity, GameJolt, Unity Persistence, Pathfinding
Divider

Your town is under attack by a Demon spawning an infinite amount of enemies, how long can you last?

This game is one of my solo projects that started working on for school, but I want to put this game online on GameJolt so I continued to work on the game in my spare time.

Endless Tower Defence

The game is a Tower Defence game containing several types of enemies: Water, Fire, Earth, Poison, Normal & Demon that each have their own unique qualities. The enemies however will never stop coming and you need to choose wether you want to build more towers or upgrade an existing one.

I used a pathfinding based on a BFS algorithm that I made (this BFS algorithm can be seen in a code example below), because Nav Mesh turned out not to be accurate enough and tended to break when many towers were placed down. I also didn't want to go for A* Pathfinding even though I have used it before, I wanted a simplified straight forward pathfinding.

Because I want to release this game on GameJolt I implemented the GameJolt API and added achievements, highscore and a login for the player.

While the Tower Defence is endless, it is not true that players will have the endless amount of time to spend on the game in one go, so I added persistence to the game so players can save and load their game. This I have done using the built-in persistence from Unity which writes down object data in a file ---

One of the things I really like about this project is the way I have setup the towers, as they are quite generic. A tower can be set-up entirely in the unity editor and any tower can be given projectiles. The projectiles can each be given an explosion as well. This way a lot of different towers could be designed and created.

Endless Tower Defence Endless Tower Defence