Wednesday, August 29, 2012

Week Two

With a basic (VERY basic) understanding of MOAI, programming for the game has begun.  My first assignment was to get the ingredients moving across the screen which was relatively easy to accomplish.  From there I found that I needed to make the ingredients disappear when they reached the left side of the screen.  In the end, a large portion of this initial code was modified to work with the collision code that came afterwords as my next project.

Collision was much more challenging to get up and running.  In the end, the tutorials recommended Block thread method was causing issues with getting collision code to work, so I ended up stripping it out and replacing it.  From there the process simplified greatly.  The game loop has a frame tracker method I built and inside of that (since it's a location of code we know is constantly being updated) is where I placed the collision logic.

With this done combined with the work of the rest of the team we -should- have a working prototype of the game once we combine all of the code.  Here's to hoping it works that smoothly!

No comments:

Post a Comment