Learn C++ for Game Development

Bruce Sutherland

  • 出版商: Apress
  • 出版日期: 2014-06-17
  • 售價: $2,780
  • 貴賓價: 9.5$2,641
  • 語言: 英文
  • 頁數: 324
  • 裝訂: Paperback
  • ISBN: 1430264578
  • ISBN-13: 9781430264576
  • 相關分類: C++ 程式語言
  • 海外代購書籍(需單獨結帳)

商品描述

If you’re new to C++ but understand some basic programming, then Learn C++ for Game Development lays the foundation for the C++ language and API that you’ll need to build game apps and applications.

Learn C++ for Game Development will show you how to:

  • Master C++ features such as variables, pointers, flow controls, functions, I/O, classes, exceptions, templates, and the Standard Template Library (STL)
  • Use design patterns to simplify your coding and make more powerful games
  • Manage memory efficiently to get the most out of your creativity
  • Load and save games using file I/O, so that your users are never disappointed

Most of today's popular console and PC game platforms use C++ in their SDKs. Even the Android NDK and now the iOS SDK allow for C++; so C++ is growing in use for today's mobile game apps. Game apps using C++ become much more robust, better looking, more dynamic, and better performing. After reading this book, you’ll have the skills to become a successful and profitable game app or applications developer in today’s increasingly competitive indie game marketplace.

The next stage is to take the foundation from this book and explore SDKs such as Android/Ouya, PlayStation, Wii, Nintendo DS, DirectX, Unity3D, and GameMaker Studio to make your career really take off.

What you’ll learn

  • How to use the various C++ skill fundamentals: variables, pointers, flow controls, functions, I/O, classes, exceptions, and more
  • How to write C++ games using object-oriented programming techniques: classes, objects, inheritance, and polymorphism
  • How to use templates and the Standard Template Library (STL) in C++
  • How to work with design patterns in C++ game development
  • How to apply C++ to native game activities
  • How to master concurrency and the gains in performance it brings

Who this book is for

This book is for aspiring game developers with some previous programming experience who need to learn the critical C++ skills necessary to build game applications.  C++ is the most popular programming language in use behind most game applications.

Table of Contents

1. Beginning C++

Part 1: Procedural Programming

2. Writing a Guessing Game with C++ Types

3. Creating Calculators with Operators

4. Beginning C++ Game Development with Arrays

5. Functions, the Building Blocks of C++

6. Making Decisions with Flow Control

7. Organizing Projects Using Files and Namespaces

Part 2: Object Oriented Programming

8. Object-Oriented Programming with Classes

9. Controlling Data with Access Modifiers

10. Building Games with Inheritance

11. Designing Game Code with Polymorphism

12. Copying and Assigning Data to Objects

Part 3: The Standard Template Library

13. The STL String Class

14. STL Array and Vector

15. STL List

16. STL's Associative Containers

17. STL's Stack and Queue

18. STL's Bitset

19. Using the STL in Text Adventure

Part 4: Templates and Metaprogramming

20. Template Programming

21. Practical Template Programming

Part 5: C++ Game Development

22. Managing Memory for Game Developers

23. Useful Design Patterns for Game Development

24. Using File IO to Save and Load Games

25. Speeding Up Games with Concurrent Programming

26. Supporting Multiple Platforms in C++

27. Wrapping Up

商品描述(中文翻譯)

如果你對C++還不熟悉,但對基本的程式設計有一些了解,那麼《遊戲開發的C++學習》將為你打下C++語言和API的基礎,這將有助於你建立遊戲應用程式和應用程式所需的能力。

《遊戲開發的C++學習》將教你如何:
- 掌握C++的特性,如變數、指標、流程控制、函數、輸入/輸出、類別、例外處理、模板和標準模板庫(STL)
- 使用設計模式簡化編碼,使遊戲更強大
- 高效管理記憶體,發揮創造力的最大潛力
- 使用檔案輸入/輸出加載和保存遊戲,讓用戶不會失望

如今,大多數熱門的遊戲主機和個人電腦遊戲平台都在其軟體開發套件(SDK)中使用C++。即使是Android NDK和iOS SDK現在也支援C++;因此,C++在當今的手機遊戲應用程式中的使用越來越廣泛。使用C++開發的遊戲應用程式更加穩健、外觀更好、更具動態性和更高效。閱讀本書後,你將具備成為當今競爭激烈的獨立遊戲市場上成功且有利可圖的遊戲應用程式或應用程式開發人員所需的技能。

下一步是利用本書的基礎,探索Android/Ouya、PlayStation、Wii、Nintendo DS、DirectX、Unity3D和GameMaker Studio等SDK,讓你的職業生涯真正起飛。

你將學到:
- 如何使用各種C++基礎技能:變數、指標、流程控制、函數、輸入/輸出、類別、例外處理等
- 如何使用面向對象的編程技術編寫C++遊戲:類別、物件、繼承和多態性
- 如何在C++中使用模板和標準模板庫(STL)
- 如何在C++遊戲開發中使用設計模式
- 如何將C++應用於本地遊戲活動
- 如何掌握並提高性能的並行處理技巧

本書適合有一些編程經驗的初學者遊戲開發人員,他們需要學習構建遊戲應用程式所需的關鍵C++技能。C++是大多數遊戲應用程式背後使用的最流行的編程語言。

目錄:
1. 開始學習C++
第一部分:程序化編程
2. 使用C++類型編寫猜數字遊戲
3. 使用運算符創建計算器
4. 使用數組開始C++遊戲開發
5. 函數:C++的基礎結構
6. 使用流程控制做出決策
7. 使用文件和命名空間組織項目

第二部分:面向對象編程
8. 使用類別進行面向對象編程
9. 使用訪問修飾符控制數據
10. 使用繼承構建遊戲
11. 使用多態性設計遊戲代碼
12. 將數據複製和分配給物件

第三部分:標準模板庫
13. STL的字符串類
14. STL的數組和向量
15. STL的列表
16. STL的關聯容器
17. STL的堆疊和隊列
18. STL的位集
19. 在文字冒險遊戲中使用STL

第四部分:模板和元編程
20. 模板編程
21. 實用的模板編程

第五部分:C++遊戲開發
22. 遊戲開發中的記憶體管理
23. 遊戲開發中有用的設計模式
24. 使用文件輸入/輸出保存和加載遊戲
25. 使用並行編程加速遊戲
26. 在C++中支援多個平台
27. 總結