Thursday, July 25, 2013

Cleaning House



A pretty nice day out today, probably what the weathermen promised yesterday.

Jumped back into Pathogen and wow... Did I not know how to code or what... Its more or less a mess, nothing is commented & some of it is just plain not built well. Spent the day re-writing how capture zones & erosion zones function so that they will update correctly during the replay. Commented those pieces as well, feels much better.


Matt is striking into the heart of online. Pretty sure we going with FLOX as our data host, so he is starting to scrap together the online classes. What we decided was that the whole GameManager i.e. the code that runs the game will be cloned into an OnlineGameManager.

Couple of reasons for this:
http://25.media.tumblr.com/cb3244938c556f3e5d46adad1dc5e308/tumblr_mm8hzxSUwT1r3jb51o1_500.jpg1. It allows me to fiddle with the normal game while he's in online.
2. The online systems and the way they deal with pushing/pulling/incrementing turns is vastly different than how it is traditionally done.
3. If we tried to do just 1 universal game manager it would quickly become bloated, with special cases for local, campaign & online since they all have their own unique quirks.

There is a downside.
1. Anything we change in GameManager needs to get re-cloned into OnlineGameManager, which is kinda a painful bit of micromanagement. 

No comments:

Post a Comment