Game Development Reference
In-Depth Information
In every update of the main game loop, a new filtered value for each gyroscope axis
is calculated by adding a percentage of the difference between the current filtered
value and the new raw value for each axis to the current filtered value. This results in
the smaller effects of jitter mostly being ignored without losing the larger intentional
gyroscope inputs from the player.
Summary
In this chapter we've looked at how to use the Extensions Development Kit to extend
the functionality of Marmalade. As you can see, it is relatively easy to create an
extension that can make use of the APIs available on each of the platforms currently
supported by the EDK.
The Gyroscope extension is a good example of supporting a hardware feature that
hasn't yet been exposed in the main Marmalade SDK, but extensions can also come
in extremely handy if you want to use any third party libraries that may have been
created directly for a particular platform using its native SDK.
As this topic draws to a close, you should now have a good grasp of the power of the
Marmalade SDK and will hopefully be jumping at the opportunity of developing a
game and launching it on a number of extremely popular platforms. Happy coding
and best of luck writing the next big gaming phenomenon!
 
Search WWH ::




Custom Search