Book Image

CryENGINE 3 Game Development: Beginner's Guide

Book Image

CryENGINE 3 Game Development: Beginner's Guide

Overview of this book

CryENGINE is a complete game development environment used by AAA game development studio Crytek to produce blockbuster games such as Crysis 1, 2 and 3. This complete Beginner's Guide takes the would be game developer through the steps required to create a game world complete with event scripting, user interface and 3D environment in the free CryENGINE SDK. Learn to create game worlds with the CryENGINE 3 Sandbox, the tool used to create AAA games like the soon to be released Crysis 3. Follow straightforward examples to sculpt the terrain, place vegetation, set up lighting, create game sounds, script with Lua and code with C++. Learn to navigate the interface within the CryENGINE 3 Sandbox, the tool used to create AAA games like Crysis 1 and 2, as well as the soon to be released Crysis 3. Learn to create your own worlds by following straight forward examples to sculpt the terrain, place vegetation, set up lighting, create game sounds, and script with the Lua language. The book covers all beginner aspects of game development including an introduction to C++ for non- coders.
Table of Contents (18 chapters)
CryENGINE 3 Game Development Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action - creating random sounds


In FMOD, we have the ability to add multiple tracks to individual sound definitions. This can be used to good measure when creating random sound volumes. This example will demonstrate how to create a sound definition with multiple sound files and how to randomly play these within your level.

  1. Open the FMOD project created in the previous example mygame_environment.fdp.

  2. Create a new sound event and name it random_bats_oneshot.

  3. Switch to the Sound Defs view in FMOD.

  4. Right-click in the Sound Defs list and select the Add sound def… option.

  5. Name the new Sound Def file as bat_flying_cave.

  6. Select the bat_flying_cave sound def, and in the Sounds window, right-click and select the Add sound file… option.

  7. Add the three provided .wav files named bat_flying_cave_01.wav , bat_flying_cave_02.wav, and bat_flying_cave_03.wav.

  8. Keep the Play Percentage set to 33.33%, as it gives all sound files an equal chance to play.

  9. The final results of the project and it's settings are seen...