Beginning C++ Game Programming
John Horton
- 出版商: Packt Publishing
- 出版日期: 2016-07-10
- 售價: $2,170
- 貴賓價: 9.5 折 $2,062
- 語言: 英文
- 頁數: 520
- 裝訂: Paperback
- ISBN: 1786466198
- ISBN-13: 9781786466198
-
相關分類:
C++ 程式語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Learn C++ from scratch and get started building your very own games
About This Book
- This book offers a fun way to learn modern C++ programming while building exciting 2D games
- This beginner-friendly guide offers a fast-paced but engaging approach to game development
- Dive headfirst into building a wide variety of desktop games that gradually increase in complexity
- It is packed with many suggestions to expand your finished games that will make you think critically, technically, and creatively
Who This Book Is For
This book is perfect for you if any of the following describes you: You have no C++ programming knowledge whatsoever or need a beginner level refresher course, if you want to learn to build games or just use games as an engaging way to learn C++, if you have aspirations to publish a game one day, perhaps on Steam, or if you just want to have loads of fun and impress friends with your creations.
What You Will Learn
- Get to know C++ from scratch while simultaneously learning game building
- Learn the basics of C++, such as variables, loops, and functions to animate game objects, respond to collisions, keep score, play sound effects, and build your first playable game.
- Use more advanced C++ topics such as classes, inheritance, and references to spawn and control thousands of enemies, shoot with a rapid fire machine gun, and realize random scrolling game-worlds
- Stretch your C++ knowledge beyond the beginner level and use concepts such as pointers, references, and the Standard Template Library to add features like split-screen coop, immersive directional sound, and custom levels loaded from level-design files
- Get ready to go and build your own unique games!
In Detail
This book is all about offering you a fun introduction to the world of game programming, C++, and the OpenGL-powered SFML using three fun, fully-playable games. These games are an addictive frantic two-button tapper, a multi-level zombie survival shooter, and a split-screen multiplayer puzzle-platformer.
We will start with the very basics of programming, such as variables, loops, and conditions and you will become more skillful with each game as you move through the key C++ topics, such as OOP (Object-Orientated Programming), C++ pointers, and an introduction to the Standard Template Library. While building these games, you will also learn exciting game programming concepts like particle effects, directional sound (spatialization), OpenGL programmable Shaders, spawning thousands of objects, and more.
Style and approach
This book offers a fun, example-driven approach to learning game development and C++. In addition to explaining game development techniques in an engaging style, the games are built in a way that introduces the key C++ topics in a practical and not theory-based way, with multiple runnable/playable stages in each chapter.
商品描述(中文翻譯)
從頭學習C++並開始建立自己的遊戲
關於本書
本書提供了一種有趣的方式來學習現代C++編程,同時建立令人興奮的2D遊戲
這本適合初學者的指南以快節奏但引人入勝的方式進行遊戲開發
從頭開始建立各種複雜度逐漸增加的桌面遊戲
充滿了許多擴展已完成遊戲的建議,讓您在批判性、技術性和創造性方面思考
適合對象
如果您符合以下任何一種情況,本書非常適合您:您完全不了解C++編程,或需要初學者級別的複習課程;如果您想學習建立遊戲,或者只是以遊戲作為學習C++的一種有趣方式;如果您有一天希望發布遊戲,也許在Steam上;或者如果您只是想玩得開心,並以您的創作給朋友留下深刻印象。
您將學到什麼
在學習遊戲建立的同時,從頭認識C++
學習C++的基礎知識,如變量、循環和函數,以使遊戲物體動畫、響應碰撞、計分、播放音效並建立第一個可玩遊戲
使用更高級的C++主題,如類、繼承和引用,生成和控制數千個敵人,使用快速射擊機槍射擊,實現隨機滾動的遊戲世界
將您的C++知識提升到初學者級別之外,使用指針、引用和標準模板庫等概念,添加分屏合作、沉浸式定向聲音和從關卡設計文件加載的自定義關卡等功能
準備好開始建立您自己獨特的遊戲吧!
詳細內容
本書旨在向您介紹遊戲編程、C++和基於OpenGL的SFML的有趣世界,並使用三個有趣且完全可玩的遊戲。這些遊戲包括令人上癮的兩個按鈕點擊遊戲、多級別的殭屍生存射擊遊戲和分屏多人拼圖平台遊戲。
我們將從編程的基礎知識開始,如變量、循環和條件,隨著每個遊戲的進展,您將變得更加熟練,學習關鍵的C++主題,如面向對象編程(OOP)、C++指針和標準模板庫的介紹。在構建這些遊戲的同時,您還將學習令人興奮的遊戲編程概念,如粒子效果、定向聲音(空間化)、OpenGL可編程着色器、生成數千個對象等等。
風格和方法
本書以有趣的示例驅動方式來學習遊戲開發和C++。除了以引人入勝的方式解釋遊戲開發技術外,遊戲的構建方式也以實用而非理論為基礎,每章中都有多個可運行/可玩的階段。