Saturday, September 10, 2011

More re-writes

So, the current "game" that I am working on takes place in a suburban home. When I last posted, I had figured out how I was going to create the doors and allow the player to interact with them. This morning, I implemented it all.

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