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 s3eAudio API


Let's start with the quickest and easiest way of allowing our games to stop being the strong, silent type.

The s3eAudio API allows us to play compressed music formats such as MP3 and AAC. Some devices may also allow us to play other formats, such as MIDI files. Marmalade makes use of whichever audio codecs a particular device may have built-in rather than decoding the audio itself, so be sure to check that your chosen audio format is supported by all the devices you wish to target.

Note

Due to its ubiquity, it is recommended that you use MP3 as your format of choice. There are very few devices (if any) that can't play an MP3 file and the format itself allows you a wide variety of bit rates so you can trade-off between audio quality and file size.

Let's now take a look at how we can get an audio track playing and what other functionality the s3eAudio API provides for us. There is nothing we need to add to our MKB file in order to allow us to use s3eAudio, as it is one of the...