Saturday, April 26, 2014

Week 6: Gravity Ball

Well, it looks like the Game a Week is turning into the Game Every Ten Days.  Well, that's okay, because I'm proud of this week.  I delved into the mobile development tool Moai (http://getmoai.com/).  It's a very nice open source solution to writing games in Lua and publishing for multiple platforms.  The backbone of the system is C++, and there are multiple hosts that can be used (Windows, Android, IOS, etc).  I used the Windows host which uses GLUT is a back-end (not my first choice, but I see that the newest version uses SDL).

When I initially downloaded from the Git repository and tried to build it, I got nothing but erros in Cmake.  After scrounging around a while, I managed to get an older stable version which only uses the Glut host for Windows.  I quickly learned Lua, and also wrote a simple parser using Tiled map editor (http://www.mapeditor.org/).

The player can move a ball around and can jump.  Also, the player can rotate gravity to the right, left, or up.  The ball will fall in that direction, and when it lands the camera will rotate to orient the up direction.  The goal is to get to the yellow.  Red squares will reset the character.  I'm actually looking to ramp this up a bit, polish it, add a few more features.


No comments:

Post a Comment