I sort of skipped a bunch of steps at the end of the last entry, because I was in a hurry to get to the point where we could see ships shooting at each other. But now that we’ve made it, let’s back up and talk about how we got here. Specifically, I’d like to respond to this comment…
I really enjoy this kind of content – programming, explaining complex IDE type objects (I’ll probably never try Unity – I’m a back end natural language processing type guy – but it is fun to see someone else struggle with it). Looking at the GIF I’m sad there wasn’t a paragraph or two about how the lasers were added: was that hard? Does Unity have an “Add laser” button? I feel like it might. I also think that each ship must track some sort of hit points value, because I saw one of them get hit (oh to have a discussion about hit boxes, and how to determine if a laser is inside one or not – I remember two decades ago trying to code up hit detection code and there are lots of optimizations in that area) and then flame out and explode. Lots of complexity hiding behind that I suspect!
Unity doesn’t have an “add laser” button, but we can re-use the trick from last time to save ourselves a bit of work.
Continue reading 〉〉 “Let’s Make a Spaceship Part 3: Back Up”
T w e n t y S i d e d

