Weekly Devlog!
Added 2019-05-03 00:14:16 +0000 UTCNormally, I try to do these on Wednesday, but I announced a new AoF on Wednesday, so I decided to save this for today. You'll notice this dev log is much, much smaller than the others. That's because a lot of my work this week was about ripping out the old way I was rendering characters and swapping in the new way to render characters.
It was kind of... not fun. For the whole week I was working hard on something that, when complete, would make the game look exactly the way it already does. But, that's just how a pessimist like myself thinks. An optimist would say:
- Now the game won't crash when you exit!
- Now there's no memory leak, so the game won't crash after you play it for an hour!
- Now I can add new sets of clothes to the characters without coding the wardrobe data from scratch all over again (3+ hours of time spent per character)!
- Now you can build a web version of the game so more people can try it (Probably. Still have to test this)!
- Now you can animate all the characters without worrying about the buggy-ness of the old system!
- Now Nugg (character artist) can rearrange the layers of his Photoshop file any way he wants and not have to worry about breaking my code!
- Now Nugg can make clothing that doesn't fit within the bounds of the character's body. e.g., He can make a sweater that hides the size of Jessie's chest.
- And so on...
Anyway, what was I saying? Oh yeah, the game looks exactly the way it did last week :( Oh wait! That's not true. I just remembered that now you can change Jessie and Kira's outfits. You couldn't do that before.

Here's the devlog itself:
- Use spine instead of the Unity 2D Animation preview - This is the majority of the time spent this week. I used a tool called Spine for my wardrobe system instead of the Unity 2D Preview package. The 2D Preview package is going to be great, but right now it's not production ready, so I had to swap it out.
- Make sure your clothes persist from upgrades to level
- Make sure your clothes persist from save to load
- Make sure the shadow is behind the character in the level
- Create a WardrobeData test that makes sure every skin is accounted for
- Make sure the game can still build after moving TestUtils into the script directory
- Use spine for Kira - See the gif above for an example :)
- Make sure the shadow under the character in the upgrade screen is centered - This got shifted a bit in the process of using Spine.
- Remove the old animation system
- Update to unity 2019 - Ah, this was kind of a pain, too. I'm using Unity 2018, but a new major version came out and I wanted to use it. After the upgrade, some of my automated tests started failing. I think this might actually be caused by a Unity bug that got introduced in the newest version, but I'm not sure. After spending a few hours trying to figure it out, I decided the best way to move forward is to just skip a part of a test that would cause the failure. Everything seems fine now.
- rename Kira's tiara to "maid headdress"
- Use spine for Jessie
That's pretty much it for this week. I hope you're all doing great!