Summer Programming 2014 – Dev. Post 3

Was a while ago since I posted but here we go. I haven’t actually gotten anything done today due to midsummer and other things going on. These last few days I have been working on the usual State Manager, Game Object Management and a Time Manager.

I’ve made similiar things to these before but I’ve made some changes to the concepts and the Time Manager is completely new.

The State Manager’s methods that control the switching of states are now static meaning that any and all Game Objects can control the state switching. This could be troublesome if used too much but it shouldn’t be any problem if used responsibly and reaches over to the second change, that Game Object just handle themselves and does not require a state to take care of them in a similar manner to my previous projects.

Anyway, in more detail about the Game Object Management, basically in the past the management have been done by the State itself which worked but wasn’t exactly ideal. A personal goal I have for this project not mentioned before is that I want to improve my ability to organize things code-wise and have code flexible and easily modifiable. So far, I am not sure if I have accomplished that but I do feel quite content with how it’s working.

The final object is the Time Manager, it’s main purpose is to monitor the delta time and make sure that all items are updated the way they should be. Since the method that delivers the delta time is a static I can access it wherever I want to but it might be for the best to deliver the data via the parameter system. Even so, making sure that I can access the Delta Time is one thing that will make updating different Game Objects easier but I am still not sure if it is the ideal method. I’ll have to do some research on that subject in the weekend.