Monday, April 2, 2012

Doom Weekend

I guess, I was just too busy this weekend with coding that I forgot to update whoever reads this.

So.. hello fellow raccoon lovers!

It has been a crazy weekend. We managed to get the decks into the PTE!

It required Joe and I to rewrite a whole bunch of the server... I kept a daily work log, so the details of it are command+c command+V'd here:



Friday/Saturday
Worked with stephen patel to try to get the deck into the PTE. We tried making it a game component, but realized we had to change some variables in game and gamecomponent (a boolean in display) for example, and we’d have to create different game actions as well as update the PTE to display a context menu based on the game actions each specific component had.
The good thing is, joe created some randomizer class, and explained the process of how to get a component that requries serverside data keeping . Hopefully, I can view it after I upload all the 251 test scores and understand it and start on it before our meeting.

Saturday/Sunday
Spent a bunch of time with jo from like 9pm to like 2 am, working on getting all the back end working to build the TakeTop action for a deck. The new framework seemed simple, except that we had to add a bunch of stuff for the server so it maintained a list of the decks, and it knew what deck to refer to. We used a SeverGameService interface which lets you get a deck based on a StringID for the deck.

Sunday, I worked on figuring out which listener to use for drop, within the PTE, for the deck component (embedded in a game component canvas). After playing around with dropOver, drop, and a combination of these, attached to different things, in order to determine the “source’ and “destination”. I remembered that the source was always fixed... for each different deck. So I could just use a drop for the “source” and pass in the destination as the constructor argument for a special type of Drop Handler. I think it was the not-sleeping properly and being sick, which took me so long to figure out.

Finally, I was able to do some magic, to get PutOnTop and PutOnBottom on, changing a bit of the code for both the server side and client parts. But it wasn’t too hard once I got joe’s expertise again, and a 2nd pair of eyes.

No comments:

Post a Comment