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


We'll finish our look at Marmalade's multimedia support by having a whirlwind look at support for playing video clips using the s3eVideo API. To make use of the functions it provides, we just need to include the s3eVideo.h file into our source code.

Before we begin, there are two things to consider when using video clips in our games. The first is that while it is possible to specify where on the screen the video clip will appear, it will always be drawn on top of all other graphics. The second issue is that due to hardware limitations in many mobile devices, the s3eVideo API cannot be used at the same time as the s3eAudio and s3eSound APIs. In the case of s3eAudio, any currently playing track will be stopped (this also applies the other way around—starting an audio track will stop a currently playing video clip). The s3eSound API will continue processing its events while a video clip is playing, but its sound output will be silenced until the video clip is finished. For...