
Innovate / Suits Tower Defence / Log #5
Cell Hovering
My goal now is to get my project to an MVP (minimum viable product) point, and that hand writing my roadmap wasn't going to be feasible if I wanted to maintain momentum when I started project work. So I started up a new Trello board and threw together what I needed to achieve MVP (and labelled it as such), a few things I wanted to keep tabs on, and some bugs I wanted addressed.

As you can see, tower placement for a "wireframe" tower (hovering) is the go!
I didn't have a lot of time so I got to work. I found our code from the last log that disabled the squares we hovered over, cut it out, and initiated a new tower in the centre of the grid with a similar process we do for our object pooling.
I knew immediately that this would cause a bajillion towers to rapidly place themselves on the grid cell when I hovered, so I tossed some code together in a dictionary caching their x, y positions and sorted that out. Ideally I'd like the towers to be spawned facing the enemy portal but that'll be an easy fix for the next session.
Anyway here's how it turned out, I'm pretty happy.



So it came time for me to check my shit in and of course Trello is an Atlassian product and I accidentally reset my source control password and it prevented my source code checkin temporarily. After that was resolved, my internet cut out and a ye olde router restart was in session!
All was well and I checked it in and finished this article with enough time to play some Stardew before bed, ehehehe.

