Now that a part of a room can be interacted with, I need to be able to relay the current state of the door back to the user. This means that I need to constantly update the room's description to include which doors are open or closed. However, before doing so, I think it's best if i finish the lighting functions first, since this too will effect a rooms description. What the player will see when its pitch black is vastly different than when the player is in a brightly lit room.
So I have also added in the ability to toggle light switches on and off. However, doing so doesn't actually accomplish anything yet.
Before moving on, I think I have to rewrite more code. It seems that this is a common practice lately. I believe that I want to change the way a room object is constructed, somewhat drastically. This will impact movement as well, so that will also need to be rewritten.
Also, I should comment my code. Sometimes it takes me a couple reads to figure out what a section is doing and I wrote the damn thing.
Also also, I am thinking of adding debug/dev tools into the code that can be toggled on and off.
In summary, there's a lot of work to be done before anything new gets finished. Arg.
No comments:
Post a Comment