134 days ago · Tech · hide · Fediverse post

Hello, loves! Let’s see about removing those skulls from the path. Currently we just remove the sprites. This is more tricky than it might be. My concern is that when a content object gives itself to Dot, it si removed from the cell it was in and a publication even tells the view to remove the sprite. When one of our new temp objects removes itself, it publishes that event, but the Dungeon does not currently subscribe to it. And when it does, we need to be sure to remove the object and NOT fire the event again, which could be harmless or could be fatal. Ah, I’m glad we decided to review this: class Dungeon: def receive_content_from_cell(self, content, containing_cell): contents = self.contents_at(containing_cell) if content in contents: self.publish('remove_content', '', content=content) contents.remove(content) self.player_inventory.append(content) I had read that if as for, and thought we were removing everything. We aren’t. OK, what are we publishing? class ContentFactory: 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