Just Noticed 0 ▲ ronjeffries.com 14 hours ago · 10 min read2088 words · Tech · hide · 0 comments Hello, loves! Just Noticed … a simplification. At least one more instance variable should disappear. I wonder, though … Last night while waiting for something to happen in the Big Game I thought to glance at the DungeonView init: class DungeonView(arcade.View): def __init__(self, dungeon, testing=False): if not testing: super().__init__() self.dungeon = dungeon self.pub_sub = dungeon.pub_sub self.subscribe(dungeon, self.pub_sub) self.setup_assets() self.key_lock = None self.keyed_floor_sprites = KeyedSpriteList(arcade.SpriteList()) self.content_views: dict[Content, ContentView] = dict() self.content_views_by_cell: dict[Cell, list[ContentView]] = defaultdict(list) self.illuminated_cells: set[Cell] = set() self.content_sprite_list = None self.dungeon_camera = None self.dungeon_camera_bounds = None self.scroller = None self.scroller_camera = None There’s a lot to see there, and we’ll come back to that below. The thing that I noticed was self.illuminated_cells: set[Cell] = set() It came… No comments yet. Log in to reply on the Fediverse. Comments will appear here.