Learn C++ for Game Development

  • 4h 10m
  • Bruce Sutherland
  • Apress
  • 2014

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.

About the Author

Bruce Sutherland is a video game programmer hailing from Dundee, Scotland. He graduated with a Bsc (Hons) Computer Games Technology from the University of Abertay, Dundee in Scotland, graduating in 2005. After graduating he began his first job in the games industry at 4J Studios where he worked on Star Trek: Encounters (PS2), The Elder Scrolls IV: Oblivion (PS3), Star Trek: Conquest (PS2, Wii), Ducati Moto (NDS) and AMF Pinbusters! (NDS). In July 2008 he moved from Dundee to Melbourne Australia where he joined Visceral Studios and was a software engineer on Dead Space (Xbox 360, PS3, PC), The Godfather II (Xbox 360, PS3, PC) and Dead Space 3 (Xbox 360, PS3, PC). He developed an interest in developing for Android in his spare time and writes tutorials on his blog.

In this Book

  • Beginning C++
  • Writing a Guessing Game with C++ Types
  • Creating Calculators with Operators
  • Beginning C++ Game Development with Arrays
  • Functions, the Building Blocks of C++
  • Making Decisions with Flow Control
  • Organizing Projects Using Files and Namespaces
  • Object-Oriented Programming with Classes
  • Controlling Data with Access Modifiers
  • Building Games with Inheritance
  • Designing Game Code with Polymorphism
  • Copying and Assigning Data to Objects
  • The STL String Class
  • STL Array and Vector
  • STL List
  • STL’s Associative Containers
  • STL's Stack and Queue
  • STL’s bitset
  • Using the STL in Text Adventure
  • Template Programming
  • Practical Template Programming
  • Managing Memory for Game Developers
  • Useful Design Patterns for Game Development
  • Using File IO to Save and Load Games
  • Speeding Up Games with Concurrent Programming
  • Supporting Multiple Platforms in C++
  • Wrapping Up
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.7 of 103 users Rating 4.7 of 103 users (103)
Rating 4.6 of 38 users Rating 4.6 of 38 users (38)