top of page
240978268_291261775916428_2748192970804460203_n.png

Cell Hovering

new profile pic.jpeg

Published September 13th 2021

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.

240978268_291261775916428_2748192970804460203_n.png

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.

241192999_4774944325849504_8699610977689225321_n.png
240958880_3018829548394348_6930873028665337461_n.png
241077880_597876831550659_7507858527591710493_n.png

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.

240939757_377626350737712_1448042277562067092_n.png

© 2023 Martin Brown, All Rights Reserved.

bottom of page