It was at 3am Pacific May 25 that Skynet was created. And it came in the form of a messenger plugin so powerful it now runs my randomizer and does it better than the randomizer itself did. What have I created?
I never realized what an overwhelming resource hog plugin parameters are. I mean sure if you just use them occasionally... No worries. But I tried using them for my map generator.... From 60FPS to crashing after about a minute due to CPU usage. I might remove plugin parameters from other people's plugins I'm using for optimization.
Sometimes I think code clean up day is my favorite day. I mean I do it for my plugins all the time, but usually I pick once a month and do it for my RM code. It really helps reveal a lot of random problems/stupid mistakes. Plus I end up vastly improving stuff I haven't looked at in awhile.
So laying in bed this morning, I had an idea.... I asked myself, what really needs to exist for the player? Do I really need to create a whole map? Or can I just create a bubble around the player? Fast forward 6 hours and "The Bubble" was born. Now instead of 50x50 maps with events roughly capped at 250.. I'm getting 60 fps with 250x250 maps and 4,000 events.
Updated my swamp area, added "Comet Mode", made weird floating masks that chant numbers. (Blame 3am ideas.) Also I recorded this video on a larger potato than last time, so the quality should be better.
I was just high-fiving myself for all I've learnt in the engine, and how far I've come, only to forget to remove the Immortal state from a semi-scripted battle. Now the enemy never dies and I feel so smart >.>
Playtest your stuff. Always playtest.