Sunday, November 4, 2012

TBowers Week 8 Report

I spent the majority of time implementing a player health bar. Before, a single collision with an enemy would decrement your lives. Now, the player health is represented by a bar along the bottom and starts at 100%. Getting hit decrements health by 10%. When the health is 2/3, the bar turns yellow and when it's below 1/3, the bar turns red. This should give the player an at-a-glance view of their health status. I also spent some fixing some bugs in how we transition scenes and allow the player to restart the game after dying. I also refactored our pause system into its own scene in the storyboard framework that is transitioned to as an overlay from gameplay. It smokes out the game scene (which is still viewable underneath) and displays "Paused" on the screen.

I think we've had some great progress this week. The social integration with Twitter and Facebook is firming up and starting to look really. Now it just has to be hooked into the actual services themselves which Eric is researching. Lee is using Corona's built in support for JSON for serialization of data out to a file which I think is going to make maintaining state and potentially hooking into game services like Game Center easy to manage. As we move forward with fully supporting more than one level, we want to prevent duplication of code as much as possible. So John and I are taking a look at inheritance in Lua and how might be able to solve some of these challenges.

No comments:

Post a Comment