Wednesday, February 19, 2014

Dev Blog 28 - Level 5 & More Automation

After finishing cutting up Level 5's music track into 114 pick-up MP3 files, I realized that writing the timestamp file would take far too long and be error prone. I wrote a little Python script that reads the file names of the entire directory and writes them to the timestamp text file. It's nothing fancy, but yet another time-saver.

All of these automation tools are coming in quite handy for the longer 8 minute songs - will try taking a stab at a master note background assignment tool later tonight.

Update @ 11:48PM - I realized that I needed a tool to automatically instantiate Notes, since creating and naming 114 gameObjects would be tedious. I wrote a tool to do just that - it instantiates a given number of Notes only in the editor mode and assigns them to be parented by the Notes gameObject. This worked quite well, all of the other automation tools worked flawlessly with it.

Now I will need 2 more tools: one to assign Y positions to Notes based on proximity to platforms (this will likely be done by drawing a ray directly downwards in the Y direction). Another to assign notes to MasterNote gameObjects so the background color changes work properly (this will likely be done by drawing a ray directly backgrounds in the Z direction and checking the name of the background it collides with).

These will be more complex tools to write, and might chew up a lot of computational power. While it would definitely be a time saver for me, it could affect level loading times. While assigning Y directions and MasterNotes manually would be tedious, it certainly isn't difficult and might be worth it to improve the end user experience.

No comments:

Post a Comment