1 hour ago · Tech · hide · 0 comments

Hello, loves! I have an on-line meeting that I can pay only small attention to. Herewith, a report on whatever tiny changes I find. No plan This is just some time to spare, improving what I see. I’ll start from Dungeon, I think, but look to the views when Dungeon bores me. Here is a method used only once other than by tests: class Dungeon: # no longer in use? def set_player_position_with_interaction(self, cell): if self._interactions_allow_move(cell): self.just_set_player_position(cell) It has something like seven tests, however. I think we’ll let it be. There’s this method, which I used once and was proud of: def maker_flood(self): if len(self.flood_list) > 0: self.flood_list = SpriteList() return for cell, distance in (Flooder(layout=self.layout, origin=self.player_cell) .can_traverse() .flood()): cx, cy = cell.center_position(cell_size) text = arcade.create_text_sprite(text=str(distance),font_size=8) text.center_x = cx text.center_y = cy self.flood_list.append(text) It fills the…

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