Lua Game Development Cookbook

Mario Kasuba

  • 出版商: Packt Publishing
  • 出版日期: 2015-07-31
  • 售價: $2,180
  • 貴賓價: 9.5$2,071
  • 語言: 英文
  • 頁數: 402
  • 裝訂: Paperback
  • ISBN: 1849515506
  • ISBN-13: 9781849515504
  • 相關分類: 程式語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

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

About This Book

  • Discover how to solve common and less common problems in game mechanics
  • Learn about modern computer graphics, sounds, physics, artificial intelligence and much more
  • Packed with loads of practical examples, step-by-step instructions, and supporting explanations to help you build a modern game engine using Lua

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.

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

In Detail

The Lua language allows developers to create everything from simple to advanced applications and to create the games they want. Creating a good game is an art, and using the right tools and knowledge is essential in making game development easier.

This book will guide you through each part of building your game engine and will help you understand how computer games are built. The book starts with simple game concepts used mainly in 2D side-scroller games, and moves on to advanced 3D games. Plus, the scripting capabilities of the Lua language give you full control over game.

By the end of this book, you will have learned all about the components that go into a game, created a game, and solved the problems that may arise along the way.

商品描述(中文翻譯)

超過70個食譜,將幫助您掌握使用Lua構建現代遊戲引擎所需的元素和最佳實踐。

關於本書
- 發現如何解決遊戲機制中的常見和不常見問題
- 學習現代計算機圖形、聲音、物理、人工智能等等
- 提供大量實用示例、逐步指導和支持性解釋,幫助您使用Lua構建現代遊戲引擎

本書適合對象
- 本書適合所有希望停止夢想創建遊戲,並實際從頭開始創建遊戲的程序員和遊戲愛好者。
- 讀者應該了解基本的編程和使用Lua語言的知識。不需要了解C/C++編程語言,但強烈建議以便編寫自定義的Lua模塊以擴展遊戲引擎功能,或將Lua代碼的部分重寫為更高效的形式。
- 為了理解第4章《圖形-OpenGL 1.x-2.1的傳統方法》和第5章《圖形-OpenGL 3.0+的現代方法》中的高級主題,需要了解代數和矩陣運算。
- 為了方便起見,示範應用程序與Windows和Linux操作系統的二進制庫配對。

您將學到什麼
- 設置OpenGL圖形和GLSL着色器
- 使用照明和圖形效果
- 使用Box2D庫創建動畫遊戲角色
- 加載和使用紋理、字體和3D模型
- 設計和實現圖形用戶界面
- 集成簡單的人工智能進行路徑規劃
- 實現網絡支持
- 在編程中使用數據結構

詳細內容
- Lua語言允許開發人員創建從簡單到高級的應用程序,並創建他們想要的遊戲。創建一個好的遊戲是一門藝術,使用正確的工具和知識對於使遊戲開發更容易至關重要。
- 本書將引導您完成構建遊戲引擎的每個部分,並幫助您了解遊戲是如何構建的。本書從主要用於2D橫向捲軸遊戲的簡單遊戲概念開始,然後轉向高級3D遊戲。此外,Lua語言的腳本能力使您完全掌握遊戲。
- 通過閱讀本書,您將學習遊戲的各個組成部分,創建一個遊戲,並解決可能出現的問題。