Day Ten
We’re 10 days in already! I had a lot more time today, but there were a few bugs to fix, one of which happens when you win and lose at the same time 🙃 probably not something that will happen particularly often tbh, but it didn’t take too long to fix…
The experienced devs out there might say “hey chief, what’s your testing strategy? How’s your code coverage? What about cyclomatic complexity?”
To those people I will say:
I test it by playing the game repeatedly and handing it off to the alpha/beta testers, my code coverage is 0, and the cyclomatic complexity is “I have no idea” :)
For the uninitiated, this all relates to automatic error checking and how likely there are to be bugs in the code. It… takes time. It’s really really useful, and generally leads to better quality shipped games and a faster build/test/release cycle, but I really can’t spend a few weeks going back and unit testing everything at this point. I wish I could, I wish I had infinite time, but alas - life gets in the way!
Polyfury’s code is generally quite straightforward. When working in Unity (which is basically all I do), I like to keep everything as separated and reusable as possible - the health system, for example, is the same one I’ve used in every game for the last 5 years or more. It’s simple, it’s flexible, and it’s pretty well battle-tested by now! Most of the code is similar, so in theory it should be pretty stable. However, I have programmer brain rot and currently operate on much less sleep than I’d like, so mistakes will be made 😂
Anyway, I hope you enjoyed that little tangent. Let me know if you want more/less/about the same amount of techy content and I can adjust.
What’s next?
I’ve still got some menu stuff to do, but tomorrow I’m going on holiday! I’ll still be posting while I’m away, but I expect to get the new stuff into alpha testing on Wednesday afternoon.
I hope you enjoyed reading about my Polyfury progress. If you have any questions or thoughts, please feel free to leave a comment below. Thanks for reading, and maybe check out the demo: