Small Idea Interruptus 0 ▲ ronjeffries.com 74 days ago · Tech · hide · Fediverse post Hello, loves! I have a small idea that might help. Let’s see if it does. Interrupted by Tornado Warning. We’d like to compute a room’s floor just once and then never revise it. Recomputing it now is harmless, because we don’t exert any control over it, but if we did do any special layout, we’d lose it, or have to rerun the special floor allocation code, which seems difficult. So what if when we go to assign flooring, we just don’t assign it if it is already assigned? Might be just the thing. When stepping, we allocate flooring on every step. If we didn’t do that, nothing would be visible: the dungeon IS its flooring, in essence. class BuildStepper: def _do_one_step(self, view): self.table[self.index](self.layout, self.dungeon) if view: sub = view.dungeon.layout.subregion view.dungeon.layout.clear_subregions() maker = KeyedSpriteListMaker(self.dungeon) maker.update(view) view.dungeon.layout.subregion = sub self.index += 1 So lets see how the KeyedSpriteListMaker works: def… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town