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

Hello, loves! Writing a note to ask for ideas, I got an idea. Let’s see what happens with it. Result: I think it turns out nicely. I was thinking about this morning’s creation of a little object that made things simpler and was easy to test. And I was looking at RoomView, and a long story test for something that doesn’t seem that tricky. And on Hill’s slack, I though I’d start a convo and get some advice, and I wrote: A RoomView has a method illuminate that illuminates every cell that it contains. The RoomView is owned by the DungeonView, which has a list of illuminated cells, because when new content is added in game play, the content item needs to be illuminated or not depending on whether the cell it is being placed in is illuminated. The DungeonView knows the dungeon layout, since it runs the map and such. So a RoomView has a DungeonView … ah, there’s yer problem right there. Maybe we should just pass in the things the RoomView needs when it needs them, and then we could more…

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