Monday, September 10, 2012

Third Week

This week was good, which is needed because it is the last week of development.
I was able to load in the level after some time. I had to go back into the fbx loading and bring in the rotation and scaling of the objects. Then when loading them have moai do the rotation and scaling.
I just made a separate collision object for each piece of cheese instead of doing something automatically. For the collision object i figured out I could just take the aabb info from it instead of the geometry. Then for collision detection i just did a point vs aabb. So the game has collision detection and still runs smoothly. I was also able to load in animations. Although i did it in a very inefficient way by having each frame of the animation put in a different picture, then just flipping through the different pictures. This makes the game load about 17 mb into memory but it still runs quickly.
I ran into some strange problems when doing animation stuff though. The game would just crash, at the same point every time, without an error or any reason i could discern. Then i would add a print statement above where it crashed and it would work. So i have a few print statements which i think is slowing down the processing long enough for the data to actually load.

Awesome work by someone to get sound to work, apparently it was just linking directX to that project and then compiling it. But for a bit of work during the final week it looks like we may put sound into the game, at least some. Although he said there is a delay from when you play in the game to when you start hearing it. So that would make it so we can't do a sound by reaction, like every time they hit a piece of cheese. But we can at least have background music.

No comments:

Post a Comment