Second update with more build options and more levels


Hello folks and welcome to part three of my DevLog. 

Progress on the game has been very good. I have created three levels, three items to build and implemented transitioning from one level to the next. 

My main goal for this week was expanding on the build menu. After some thinking I was going for "Wash your hands" posters (it fits the theme to fight MRSA bacteria perfectly) that can be build only on walls and "cleaning carts" that act like random moving tanks. :D

The tank seemed a bit daunting so I started with the poster build option first. I decided that the effect of building the posters is that nearby bacteria move slower. This makes it easier to destroy them with the soap towers and it fits the theme that educating people with good hygiene slows down spreading bacteria. I first selected some assets from stuff I already had purchased. And to my surprise it was not that difficult to implement since the walls already where stand alone objects so I expanded them to also hold posters. To apply the effect an event is thrown with the affected coordinates on the grid so the corresponding tiles can set a "slowness" flag. When enemies collide with these tiles, there movement is halved. 

I repeated this process for the cleaning cart build object but the challenge here was to make it move. Fortunately, the pathfinder script I used for the enemies could be expanded so that it can also be used by the cleaning cart tank. I did made it easy for myself to hard-code a set of coordinates the tank randomly moves towards. When it reaches one of the coordinates, it randomly selects another one and so on. In a later update I plan to make it select enemies to attack because it's a bit dull when you build a cleaning cart tank and it moves away from the action... Making the tank shoot was easy since the shooting part of the tower could easily be applied to the tanks. 

Having only one level (that was very difficult to beat) was bugging me so the next challenge was building three levels and transitioning from level 1, to 2, to 3. This was more difficult for me as I have a lot to learn about Unity and the way it loads scenes, singleton classes and when Awake and Start methods get fired. But learning is the point of this project and it seems to be working fine now. 

This is a screenshot of the first level which now only has one entry point for the bacteria to enter so it should be easy to beat the first level:

Next week I'm on holiday but I hope to have some more updates to share in two weeks time. 

Thanks for reading! 

Leave a comment

Log in with itch.io to leave a comment.