Practical C++ Game Programming with Data Structures and Algorithms: Write high-performance code and solve game development challenges with expert-led (Paperback)
暫譯: 實用 C++ 遊戲程式設計:使用資料結構與演算法撰寫高效能程式碼並解決遊戲開發挑戰 (平裝本)

Li, Zhenyu George, Yeh, Charles Shih-I, Roberts, E. Wyn

  • 出版商: Packt Publishing
  • 出版日期: 2025-06-30
  • 售價: $1,620
  • 貴賓價: 9.5$1,539
  • 語言: 英文
  • 頁數: 408
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1835889867
  • ISBN-13: 9781835889862
  • 相關分類: C++ 程式語言遊戲設計 Game-design
  • 海外代購書籍(需單獨結帳)

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

商品描述

Explore expert techniques in C++ to tackle performance bottlenecks, AI logic, and rendering issues for smoother, smarter, and scalable game development

Key Features:

- Solve real-world game dev problems with expert C++ data structures and algorithms

- Learn through practical, executable code instead of abstract theory or pseudocode

- Build responsive, high-performance games with advanced rendering and AI techniques

- Print or Kindle purchase includes a free PDF eBook

Book Description:

Game development demands performance-driven solutions-from rendering complex 3D scenes to managing AI behavior and handling animations. This hands-on book guides you in solving these challenges using high-performance C++ data structures and algorithms. The authors distill their decades of combined industry experience to help you apply practical C++ techniques to create smooth, scalable, and intelligent games. Instead of pseudocode or abstract theory, you'll work with real, executable examples that translate directly to your projects. Demos in this book have been developed based on raylib library, providing accessible and efficient foundations for learning.

Opening with a structured overview of algorithmic thinking in C++ game development, the book covers advanced algorithms and their applications in real-world game scenarios. You'll implement data structures that optimize game functionality, solve algorithmic problems efficiently, and enhance gameplay with robust AI and rendering techniques. In addition, the key focus is collision detection, 2D/3D rendering, animation, camera controls, and machine learning-driven AI, all through practical, executable C++ code.

By the end of this book, you'll be able to confidently apply advanced C++ techniques to develop efficient, scalable, and feature-rich gameplay systems for modern games.

What You Will Learn:

- Apply data structures and algorithms to solve real game development problems

- Apply rendering techniques, such as shader, lighting, soft shadow, particles, and quad-tree terrain

- Build dynamic camera systems like third-person, rail, top-down, and split-screen views

- Animate skeletal characters using interpolation and inverse kinematics

- Implement NPC AI with FSM, behavior tree, A* pathfinding, and steering

- Explore ML with neural networks in a hands-on AI turret defense project

- Performance and memory optimization using techniques like object pooling and LOD

Who this book is for:

This book is for experienced game programmers, technical artists, and developers looking to refine their skills through real-world C++ solutions. A foundational understanding of C++, data structures, and core game development principles will be beneficial. Whether you want to deepen your expertise or are looking for a reliable reference guide, this book will be your trusted companion in building better games.

Table of Contents

- Gearing Up: C++ for Game Development

- Data Structures in Action: Building Game Functionality

- Algorithms Commonly Utilized in Game Development

- 2D Rendering and Effects

- The Camera and Camera Controls

- 3D Graphics Rendering

- Rendering a 3D Game World

- Animating Your Characters

- Building AI Opponents

- Machine Learning Algorithms for Game AI

- Continuing Your Learning Journey

商品描述(中文翻譯)

探索 C++ 專家技術以解決性能瓶頸、AI 邏輯和渲染問題,實現更流暢、更智能和可擴展的遊戲開發

主要特色:

- 使用專業的 C++ 數據結構和算法解決現實世界的遊戲開發問題

- 通過實用的可執行代碼學習,而非抽象理論或偽代碼

- 構建響應式、高性能的遊戲,運用先進的渲染和 AI 技術

- 印刷版或 Kindle 購買包括免費 PDF 電子書

書籍描述:

遊戲開發需要以性能為驅動的解決方案——從渲染複雜的 3D 場景到管理 AI 行為和處理動畫。本書以實踐為導向,指導您使用高性能的 C++ 數據結構和算法來解決這些挑戰。作者提煉了數十年的行業經驗,幫助您應用實用的 C++ 技術來創建流暢、可擴展和智能的遊戲。您將使用真實的可執行範例,而非偽代碼或抽象理論,這些範例可以直接轉化為您的項目。本書中的示範基於 raylib 庫開發,提供了可接觸且高效的學習基礎。

本書以 C++ 遊戲開發中的算法思維結構化概述開篇,涵蓋先進算法及其在現實遊戲場景中的應用。您將實現優化遊戲功能的數據結構,有效解決算法問題,並通過強大的 AI 和渲染技術增強遊戲體驗。此外,重點包括碰撞檢測、2D/3D 渲染、動畫、相機控制和基於機器學習的 AI,所有內容均通過實用的可執行 C++ 代碼進行展示。

在本書結束時,您將能夠自信地應用先進的 C++ 技術,為現代遊戲開發高效、可擴展且功能豐富的遊戲系統。

您將學到的內容:

- 應用數據結構和算法解決實際遊戲開發問題

- 應用渲染技術,如著色器、照明、柔和陰影、粒子和四叉樹地形

- 構建動態相機系統,如第三人稱、軌道、俯視和分屏視圖

- 使用插值和逆向運動學為骨骼角色進行動畫

- 實現 NPC AI,使用有限狀態機(FSM)、行為樹、A* 路徑尋找和引導

- 在實踐中的 AI 塔防項目中探索使用神經網絡的機器學習

- 使用物件池和 LOD 等技術進行性能和內存優化

本書適合誰:

本書適合有經驗的遊戲程序員、技術藝術家和開發者,旨在通過現實世界的 C++ 解決方案來提升他們的技能。對 C++、數據結構和核心遊戲開發原則的基礎理解將是有益的。無論您是想深化專業知識,還是尋找可靠的參考指南,本書都將成為您構建更好遊戲的可信夥伴。

目錄

- 準備工作:C++ 遊戲開發

- 數據結構實踐:構建遊戲功能

- 遊戲開發中常用的算法

- 2D 渲染和效果

- 相機及其控制

- 3D 圖形渲染

- 渲染 3D 遊戲世界

- 為角色進行動畫

- 構建 AI 對手

- 遊戲 AI 的機器學習算法

- 繼續您的學習之旅