Below you will find pages that utilize the taxonomy term โScriptingโ
Posts
read more
Lua for Game Development โ Chapter 8: Animation Systems, Cameras, Cutscenes & Timeline Scripting
Animation and cinematic systems transform raw gameplay into a polished, emotional experience.
Lua is ideal for sequencing, orchestration, animation management, and camera scripting because:
- Coroutine syntax is perfect for timelines.
- Hot reload accelerates iteration.
- Data-driven tables make timelines readable.
- Engines expose animation/camera APIs easily.
In this chapter we build:
- Animation state machines
- Sprite animation system
- Camera follow/zoom/lerp
- Timeline scripting engine
- Dialogue system
- Cutscenes (with coroutines)
- Screen/camera effects (shake, flash, fade)
- Sequencers for complex cinematic flows
1. Animation State Machines (ASM)
Most games rely on an animation finite-state-machine:
Posts
read more
Lua for Game Development โ Chapter 1: Why Lua?
Lua is one of the most influential technologies in game development.
It is lightweight, embeddable, fast, expressive, and battle-tested across decades.
In this chapter, we explore why Lua is still the #1 scripting language for games, how it fits into modern engines, and the core principles that make Lua unique.
1. What Makes Lua Special?
Lua was designed with one mission:
A small, fast scripting language that can glue complex systems together.