143 days ago · Tech · hide · Fediverse post

Hello, loves! Let’s see if we can gin up something that’s kind of fun. I have a simple idea that seems promising. Turns out to be Very Pleasing! Let’s see how we create the DungeonView: Here’s some of where it gets going: class DungeonView:` def run(self): self.setup() self.dungeon.run() self.window.show_view(self) arcade.run() def setup(self): self.setup_scroller() self.setup_cameras() self.room_sprite_list = arcade.SpriteList() self.create_rooms(self.room_sprite_list) self.create_content_lists() def create_rooms(self, shape_list): for room in self.dungeon.rooms: RoomView(self.dungeon, room).create_floor(shape_list) class RoomView: class RoomView: def __init__(self, dungeon, room): self.dungeon = dungeon self.layout = dungeon.layout self.room = room self.texture_finder = TextureFinder() # if not self.texture_finder.verify(): # raise Exception('Invalid texture finder') def create_floor(self, shape_list): cells = set(self.room.cells) for cell in cells: self.choose_flooring(cell,…

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