Book Image

Marmalade SDK Mobile Game Development Essentials

By : Sean Scaplehorn
Book Image

Marmalade SDK Mobile Game Development Essentials

By: Sean Scaplehorn

Overview of this book

Modern mobile devices are capable of supporting video games of amazing quality but there are so many different devices and platforms how can you support them all? The answer is to use the Marmalade SDK to write your code once and deploy it to all popular mobile platforms at the touch of a button.Marmalade SDK Mobile Game Development Essentials will provide you with everything you need to know to transfer your existing C++ videogame programming knowledge to mobile devices. From graphics and sound to input methods and actual deployment to device, this book covers the lot.Learn how to make use of keys, touch screen and accelerometer inputs for controlling your game.Take the pain out of supporting a varied range of target devices, both across multiple platforms and multiple specifications.Step by step from "Hello World" to a complete game, this book will show how to use the Marmalade SDK to develop games for mobile devices.Learn how to make dazzling 2D and 3D games complete with fully animated characters, music and sound effects that can be deployed to all the leading mobile platforms, whilst ensuring it can run on a wide range of possible devices, from low specification to high end.If you want to join the exciting world of mobile videogames then Learning Mobile Game Development with Marmalade will show you how to do so, fast!
Table of Contents (17 chapters)
Marmalade SDK Mobile Game Development Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The Marmalade ITX file format


An ITX file is Marmalade's built-in file format that can be used for loading all kinds of data into our program. The extension ITX is short for Ideaworks TeXt; Ideaworks being the original name of the company that created the SDK before they rebranded themselves as Marmalade.

ITX files have a simple text format and are used as the basis for resource loading. While it is possible to load resources ourselves, it is a bit like reinventing the wheel when Marmalade already provides a great deal of support for this truly tedious aspect of coding.

Marmalade has an API called IwUtil that contains a wide range of useful utility functions ranging from memory management and debugging through to the serialization of objects and random number generation. It also contains a class called CIwTextParserITX, which allows us to load and process an ITX file.

To add this functionality to our own project, we just need to add iwutil to the subprojects list of the MKB file and then add...