O'Reilly logo

Developing Mobile Games with Moai SDK by Francisco Tufro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter we created a simple framework to work with assets. We created ways to define images, sounds, and fonts and coded the ResourceDefinitions class to store this data. We wrote our ResourceManager class, which is in charge of loading the different assets and caching them. We also went through the creation of loading functions for these different assets and explained a way to define them. Now we’re ready to start developing the gameplay for our game; how awesome is that!

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required