2 days ago · Tech · 0 comments

While I’m in another world, let me muse about Content. Gets messier than it was, but with new feature. Needs improvement. Hello, loves! I think we’ll approach pluggable behavior in Content as a way to reduce the number of classes while adding capability. In particular, I think we will start with interact_with_player, since we have a couple of different cases now and need at least one more change: we’d like for the Switch to refuse entrance, so that Dot can bump it to change it but she can’t step on it. We’ll have to do things to be certain it can’t block a path but that can be done manually until we have smarter content placement. We’ll want a similar thing with the Chest, I think. Probably you can’t step on it unless it is open and empty, or something like that. For that to work, we need a way for player interaction to return an indicator as to whether the player can enter the cell in question. There can be more than one content object in a cell and presumably if any of them wants to…

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