O'Reilly logo

Learning ShiVa3D Game Development by Wade Tracy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Behaviors and Scripting

Up until now, we have shied away from doing much with scripting, but all of that is about to change. Scripting is essential for even the most basic game because user interaction is handled through scripts. We can also give enemies artificial intelligence, trigger animations, and manage scene resources. In this chapter, we will consider the following:

  • Learn the Lua syntax used in ShiVa
  • Cover the basics of the API
  • Add user controls and other scripting into our game
  • Add some cool stuff to our game

Lua syntax

ShiVa3D uses Lua as the basis of its scripting language, StoneScript , so if you have experience with Lua then you will have a leg up on everyone else, but you also have to keep in mind that the Lua APIs and many ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required