Small Idea Interruptus 0 ▲ ronjeffries.com 5 days ago · Tech · hide · 0 comments 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… No comments yet. Log in to reply on the Fediverse. Comments will appear here.