1 hour ago · 6 min read1107 words · Tech · hide · 0 comments

Hello, loves! This morning I’ll try to spike in a Section for the Scroller. I’ll waste 90 minutes. This afternoon, I’ll win! Tout le monde déteste l’IA. We’ll need three Sections if we stick with Sections: the map, the scroller, and the mini-map. Each Section can only have one Camera, so I think we’re stuck with three. According to yesterday’s example code, the View creates a SectionManager and the sections. I’ll add that to our DungeonView as boilerplate, semi-copied from that example. class DungeonView(arcade.View): def __init__(self, dungeon): if arcade.window_commands._window: super().__init__() self.cameras = Cameras(self, dungeon.max_x, dungeon.max_y, zoom=params.zoom_factor) self.dungeon = dungeon self.pub_sub = dungeon.pub_sub self.keys = None self.keyed_sprites = None # updated below KeyedSpriteListMaker(dungeon).update(self) self.subscribe(self.dungeon, self.pub_sub) self.section_manager = SectionManager(self) self.section_manager.add_section(…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.