Today’s progress report on Cavernoid. I only put in about 30 minutes on the train, but I was able to smartify the map defogging routine.
Previously, it took the unit’s “vision” variable and just revealed a perfect square around the bot, delving deep into the mysterious contents of the rocky outcroppings. This way, using a scout-bot, you could pretty much reveal where all the gems were really easily.
This new method keeps that from happening. It isn’t a pure ray-trace or anything hot like that. It’s just a few nested FOR loops that extend from the bot in question and only reveal the first layer of stone encountered. That way, you don’t instantly know where all the loot’s buried!
Check out the screenie to see it in action: