© Jaken Chandler Herman 2019
Jaken Chandler HermanBeginning Game Development with Amazon Lumberyardhttps://doi.org/10.1007/978-1-4842-5073-0_8

8. Beginning Lua Scripting

Jaken Chandler Herman
(1)
Conroe, TX, USA
 
To add custom functionality for input controls, enemy controls, and other various gameplay values, we need to harness the powers of the Lua programming language. In this chapter, we will first have a programming in Lua crash course, then we will look at in-game examples for Amazon Lumberyard. In these examples, we will modify our player character’s camera control script as well as the enemy AI spawner script.
In the crash course, we will learn about comments in Lua, both writing and invoking functions, loops, collections, variables, conditional ...

Get Beginning Game Development with Amazon Lumberyard: Create 3D Games Using Amazon Lumberyard and Lua now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.