Cleaning
🫧 Open on Bubbles Hello, loves! I have a bit of time where I can’t concentrate deeply but can probably do some easy things. A new class reduces DungeonLayout. Let’s see what we can find that might be useful. A bit of mess reduction. Here’s the code that turns a picture of a map into cells: class DungeonLayout : # probably should be separate object. def add_rooms_from_map ( self , string_map ): d = self . string_map_to_dictionary ( string_map ) self . add_from_dictionary ( d ) @ staticmethod def string_map_t
评论
?
参与讨论