Have a personal or library account? Click to login
Lua Game Development Cookbook Cover

Lua Game Development Cookbook

Over 70 recipes that will help you master the elements and best practices required to build a modern game engine using Lua

Paid access
|Sep 2025
Product purchase options

Key Features

    Book Description

    This book is for all programmers and game enthusiasts who want to stop dreaming about creating a game, and actually create one from scratch.
    The reader should know the basics of programming and using the Lua language. Knowledge of the C/C++ programming language is not necessary, but it's strongly recommended in order to write custom Lua modules extending game engine capabilities or to rewrite parts of the Lua code into a more efficient form.
    Algebra and matrix operations are required in order to understand advanced topics in Chapter 4, Graphics – Legacy Method with OpenGL 1.x-2.1 and Chapter 5, Graphics – Modern Method with OpenGL 3.0+.
    Sample demonstrations are coupled with binary libraries for Windows and Linux operating systems for convenience.

    What you will learn

    • Set up OpenGL graphics along with GLSL shaders
    • Use lighting and graphical effects
    • Create animated game characters using Box2D library
    • Load and use textures, fonts, and 3D models
    • Design and implement a graphical user interface
    • Integrate simple Artificial Intelligence for pathfinding
    • Implement networking support
    • Use data structures in programming

    Who this book is for

    This book is for all programmers and game enthusiasts who want to stop dreaming about creating a game, and actually create one from scratch.

    Table of Contents

    1. Basics of the game engine
    2. Events
    3. Graphics: Common methods
    4. Graphics: Legacy method with OpenGL 1.x - 2.1
    5. Graphics: Modern method with OpenGL 3.0+
    6. User interface
    7. Physics and game mechanics
    8. Artificial intelligence
    9. Sounds
    PDF ISBN: 978-1-84951-551-1
    Publisher: Packt Publishing Limited
    Copyright owner: © 2015 Packt Publishing Limited
    Publication date: 2025
    Language: English
    Pages: 360