Game Development Patterns with Unreal Engine 5: Build maintainable and scalable systems with C++ and Blueprint
暫譯: 使用 Unreal Engine 5 的遊戲開發模式:以 C++ 和 Blueprint 建立可維護且可擴展的系統
Butler, Stuart, Oliver, Tom
- 出版商: Packt Publishing
- 出版日期: 2024-01-05
- 售價: $1,880
- 貴賓價: 9.5 折 $1,786
- 語言: 英文
- 頁數: 254
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1803243252
- ISBN-13: 9781803243252
-
相關分類:
C++ 程式語言、JVM 語言、Unreal
海外代購書籍(需單獨結帳)
商品描述
Improve your game's code to make it more readable, reusable, modular, and optimized, guided by design patterns to enhance your overall use of C++ with Unreal Engine
Key Features- Explore the fascinating world of design patterns and their applications in Unreal Engine 5 game development
- Learn how to translate code from Blueprint to C++ to implement performant solutions in game development
- Discover best practices for writing clean code and applying it to Unreal Engine 5 and C++
- Purchase of the print or Kindle book includes a free PDF eBook
Design patterns serve as a toolkit of techniques and practices that enable you to write code that's not only faster, but also more manageable. With this book, you'll explore a range of design patterns and learn how to apply them to projects developed in Unreal Engine 5.
You'll begin by delving into the foundational principles of coding and develop a solid understanding of the concepts, challenges, and benefits of using patterns in your code. As you progress, you'll identify patterns that are woven into the core of Unreal Engine 5 such as Double Buffer, Flyweight, and Spatial Partitioning, followed by some of the existing tool sets that embody patterns in their design and usage including Component, Behavior Tree, and Update.
In the next section of the book, you'll start developing a series of gameplay use cases in C++ to implement a variety of design patterns such as Interface and Event-based Observers to build a decoupled communications hierarchy. You'll also work with Singleton, Command, and State, along with Behavioral Patterns, Template, Subclass Sandbox, and Type Object. The final section focuses on using design patterns for optimization, covering Dirty Flag, Data Locality, and Object Pooling.
By the end of this book, you'll be proficient in designing systems with the perfect C++/Blueprint blend for maintainable and scalable systems.
What you will learn- Grasp the essence of design patterns and their inherent utility
- Understand the layers within UE 5 and how they work together
- Identify the relationship between C++ code and Blueprint in Unreal Engine 5
- Recognize the design patterns found within existing Unreal Engine 5 functions
- Explore design patterns to understand their purpose and application within Unreal Engine 5
- Creatively apply design patterns to existing code to overcome common challenges
If you are a beginner or intermediate game developer working with Unreal Engine and looking to improve your C++ coding practices, this book is tailor-made to help you produce clean, reusable code through the application of design patterns.
While this book will cover introductory tasks to show the fundamentals of Unreal Engine 5, its primary purpose is not to teach Unreal Engine from scratch. Prior experience with Unreal Engine will be beneficial, but don't fret if your knowledge isn't in-depth; the book will introduce tools and features as needed.
Table of Contents- Understanding Unreal Engine 5 and it's layers
- "Hello Patterns"
- UE5 patterns in action: Double Buffer, Flyweight and Spatial Partitioning
- Premade Patterns in UE5: Component, Behaviour Tree and Update Method
- Forgetting Tick
- Clean communication: Interface and Event Observer patterns
- A perfectly decoupled system
- Building Design Patterns: Singleton, Command and State
- Structuring Code with Behavioural Patterns: Template, Subclass Sandbox and Type Object
- Optimisation Through Patterns
商品描述(中文翻譯)
改善您的遊戲代碼,使其更具可讀性、可重用性、模組化和優化,透過設計模式來提升您在 C++ 和 Unreal Engine 的整體使用效果
主要特點
- 探索設計模式的迷人世界及其在 Unreal Engine 5 遊戲開發中的應用
- 學習如何將代碼從 Blueprint 轉換為 C++,以實現高效的遊戲開發解決方案
- 發現撰寫乾淨代碼的最佳實踐,並將其應用於 Unreal Engine 5 和 C++
- 購買印刷版或 Kindle 書籍可獲得免費 PDF 電子書
書籍描述
設計模式作為一套技術和實踐的工具包,使您能夠編寫不僅更快且更易於管理的代碼。通過本書,您將探索一系列設計模式,並學習如何將它們應用於在 Unreal Engine 5 中開發的項目。
您將首先深入了解編碼的基本原則,並對在代碼中使用模式的概念、挑戰和好處有一個扎實的理解。隨著進展,您將識別出融入 Unreal Engine 5 核心的模式,例如雙緩衝(Double Buffer)、享元(Flyweight)和空間劃分(Spatial Partitioning),接著介紹一些現有的工具集,這些工具集在其設計和使用中體現了模式,包括組件(Component)、行為樹(Behavior Tree)和更新(Update)。
在書的下一部分,您將開始在 C++ 中開發一系列遊戲玩法用例,以實現各種設計模式,例如介面(Interface)和基於事件的觀察者(Event-based Observers),以建立解耦的通信層次結構。您還將使用單例(Singleton)、命令(Command)和狀態(State),以及行為模式(Behavioral Patterns)、模板(Template)、子類沙盒(Subclass Sandbox)和類型對象(Type Object)。最後一部分專注於使用設計模式進行優化,涵蓋髒標誌(Dirty Flag)、數據局部性(Data Locality)和對象池(Object Pooling)。
到本書結束時,您將能夠熟練設計出完美的 C++/Blueprint 組合,以實現可維護和可擴展的系統。
您將學到的內容
- 掌握設計模式的本質及其固有的實用性
- 理解 UE 5 中的層次結構及其如何協同工作
- 識別 C++ 代碼與 Unreal Engine 5 中 Blueprint 之間的關係
- 認識現有 Unreal Engine 5 函數中的設計模式
- 探索設計模式以理解其在 Unreal Engine 5 中的目的和應用
- 創造性地將設計模式應用於現有代碼,以克服常見挑戰
本書適合誰
如果您是初學者或中級遊戲開發者,正在使用 Unreal Engine 並希望改善您的 C++ 編碼實踐,本書專為幫助您通過應用設計模式來產生乾淨、可重用的代碼而設計。
雖然本書將涵蓋介紹性任務以展示 Unreal Engine 5 的基本原理,但其主要目的是不是從零開始教學 Unreal Engine。擁有 Unreal Engine 的先前經驗將是有益的,但如果您的知識不夠深入也不必擔心;本書將根據需要介紹工具和功能。
目錄
- 理解 Unreal Engine 5 及其層次結構
- 「你好,模式」
- UE5 中的模式實踐:雙緩衝、享元和空間劃分
- UE5 中的預製模式:組件、行為樹和更新方法
- 忘記 Tick
- 乾淨的通信:介面和事件觀察者模式
- 一個完美解耦的系統
- 構建設計模式:單例、命令和狀態
- 使用行為模式結構化代碼:模板、子類沙盒和類型對象
- 通過模式進行優化