Book Image

Learning ShiVa3D Game Development

By : Wade Tracy
Book Image

Learning ShiVa3D Game Development

By: Wade Tracy

Overview of this book

<p>Mobile games have been the recent craze and with so many ways to monetize the popularity of these games, it is no wonder that game developers are excited to get into the market. However, the mobile platforms that are available and their popularity constantly change meaning that developers have to be able to react quickly to the market. ShiVa3D gives developers the power to quickly develop the game once, but deploy to almost every popular mobile platform, which enables them to have greater distribution and a greater opportunity to sell games.<br /><br />"Learning ShiVa3D Game Development" is a simple, hands-on guide to the key features of the ShiVa3D game engine that will enable you to get up and running with your mobile game ideas. Learning ShiVa3D Game Development will make it possible to easily develop your game once, but publish it to most of the popular mobile platforms.<br /><br />This book specifically targets the key features of ShiVa3D that will enable you to create games quickly. It will take you through designing game components in the editor and provide detailed explanations for every line of scripting used.<br /><br />You&rsquo;ll look at how the modular nature of the editor allows you to do everything from scripting, to complex physics interactions, to special effects with only a few adjustments to pre-configured settings. We will see how to deal with input from the keyboard, mouse, or touchscreen as well as how to add sound effects and music to a game. You will get to actually play your game as you learn to deploy a game to an Android phone. If you are looking for a way to make your game ideas a reality, then this is the book for you.<br /><br />By the end of this book, you would have learnt everything you need to know to create your own mobile game that can then be deployed just about anywhere.</p>
Table of Contents (16 chapters)

Adding sounds


Sound in a game can really make a big difference. In ShiVa, we have the option to add background music in the Ambience Editor window, but we can also add sound effects for individual objects. We are going to use the SoundBank Editor window to add a low-level constant engine noise for our ship.

Creating a SoundBank

Arrange your editor so that you can see the Data Explorer, Scene Explorer, and SoundBank Editor windows. I also like to have the Scene Viewer window open so I can quickly reopen the scene if needed. This arrangement is shown in the following screenshot:

The SoundBank Editor window is used to manage sound effects for an object and can only create, play, or rearrange the index of sounds.

The sound that I am going to use is from soundbible.com and it is called Rocket Thrusters. There are plenty of sites that have free sounds, but you'll want to make sure you check the licensing before using anything you download. I modified the sound a bit in Audacity so that it would loop...