Learning ShiVa3D Game Development Get a grip on ShiVa3D mobile game development with this step-by-step, hands-on tutorial Wade Tracy BIRMINGHAM - MUMBAI Learning ShiVa3D Game Development Copyright © 2012 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: November 2012 Production Reference: 1161112 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-84969-350-9 www.packtpub.com Credits Author Technical Editor Wade Tracy Dominic Pereira Reviewers Project Coordinator Zachary Burke Shraddha Bagadia Marc Schaerer Proofreader Maria Gould Acquisition Editor Kartikey Pandey Indexer Hemangini Bari Commissioning Editors Shreerang Deshpande Maria D'souza Production Coordinator Melwyn D'sa Yogesh Dalvi Ameya Sawant Cover Work Priyanka Shah Melwyn D'sa Cover Image Conidon Miranda About the Author Wade Tracy is the founder of Subspace Games, which was created with the intent of inviting the Internet audience to learn game development and design alongside him. He has experience of developing mobile applications for Blackberry devices and currently develops enterprise applications using the .NET framework. More than anything he enjoys spending time with his family. I'd like to thank Amy, Abby, Liam, Matthew, and Justin for their constant support. In this family we have the best of everything— each other. Special thanks also go to Bryan "The Idea Man" Guzman. "Inspiration and genius—one and the same." – Victor Hugo About the Reviewer Zachary Burke has a formal education in electrical engineering and has been trying to make video games since he was seven years old. He has been a dedicated ShiVa user since early 2011, and you'll find him on the forums as error454. As well as having a successful career in the mobile industry, he moonlights as a game designer and developer for his own company, Hypercane Studios. Marc Schaerer is a thirty-one-year old interactive media software engineer working as a freelance developer and consultant. After years of self-tutoring in various game development related fields, he immatriculated at ETH Zurich, a major global institution in research and training new engineers, where he studied Computer Science and Computational Science and Engineering. Armed with the indepth background gained at ETH and forced by the lack of presence of interactive and gaming industry in Switzerland, he funded Gayasoft to work as a remote freelance game software engineer and technical consultant for a variety of smaller and bigger global customers, including Solstar Games where he took over the lead developer position for their MMO technology suite Realm Crafter, before leaving to move to ShiVa 3D and the Unity interactive engine technologies in 2008, which since then became his main tools to create immersive, interactive 2D and 3D experiences for the Web and mobile. With the technological change in the society initially started by the growing usage of the new generations of smart phones, his interest broadened to cover games in their complete form including interactive trainings, interactive tutoring, serious games, and gamification. This interest lead him to Living Artz in 2010–2011, where he filled the role as a programmer on a major 3D online virtual community project featuring an immersive learning environment, followed later in 2011 by a lead developer position on Popper (http://www.popper.org), an interactive 3D behavioral research platform powered by Unity and ExitGames Photon, but this interest also raised his interest in helping others to create immersive experiences for users, be it for entertainment, learning, or serious games. I would like to thank Shraddha Bagadia and Ameya Sawant from Packt for their support, my family for supporting me, and the author for the work invested in this book. www.PacktPub.com Support files, eBooks, discount offers and more You might want to visit www.PacktPub.com for support files and downloads related to your book. Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books. Why Subscribe? • Fully searchable across every book published by Packt • Copy and paste, print and bookmark content • On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access. Table of Contents Preface 1 Chapter 1: Getting Started 9 System requirements 9 Downloading ShiVa3D 10 Installing ShiVa3D 10 The ShiVa editor 11 Creating a project 12 Creating a game 13 Making a scene 13 Importing models 14 Editing the scene 18 Adding intelligence 20 Variables 21 Handlers 22 Summary 25 Chapter 2: Editor Fundamentals 27 The ShiVa3D editor 27 Program menu 28 The Modules 30 The AI Debugger module 31 AI Model Editor 31 Ambience Editor 32 Attributes Editor 32 Data Explorer 32 Game Editor 32 HUD Editor 32 Log Reporter 33 PolyTrail Editor 33