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

8. Beginning Lua Scripting

Jaken Chandler Herman1 
(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 statements, ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.