• ISBN13: 9781598633603
  • Condition: NEW
  • Notes: Brand New from Publisher. No Remainder Mark.

Product Description
What is it that sets games apart from other forms of entertainment, keeping players coming back for more? Interactivity. The ability to control the outcome. Programming is an integral part of that interactivity, and C++ is a vital skill in programming for games. Beginning C++ through Game Programming, Second Edition will provide you with the core skills you need to begin programming with C++ specifically as it relates to games. You’ll reinforce each new skill by cre… More >>

Beginning C++ Through Game Programming

5 thoughts on “Beginning C++ Through Game Programming”

  1. If you’re a beginner and want a place to start programming games then this is the book for you. But be sure of one thing, no book can teach you everything, but with help from books like this one written by Michael Dawson it will help you get your foot into the door and then some. I recommend this book to anyone that wants to get into game programming and knows the basics of C++. Here is a little more info about each chapter for those of you that need it.

    Table of Contents


    Chapter 1 – Types, Variables, and Standard I/O: Lost Fortune

    Chapter 2 – Truth, Branching, and The Game Loop: Guess My Number

    Chapter 3 – For Loops, Strings, and Arrays: Word Jumble

    Chapter 4 – The Standard Template Library: Hangman

    Chapter 5 – Functions: Mad-Lib

    Chapter 6 – References: Tic-Tac-Toe

    Chapter 7 – Pointers: Tic-Tac-Toe 2.0

    Chapter 8 – Classes: Critter Caretaker

    Chapter 9 – Advanced Classes and Dynamic Memory: Game Lobby

    Chapter 10 – Inheritance and Polymorphism: Blackjack

    I hope this helps you out.

    Rating: 5 / 5

  2. Up to now, there were few decent books that taught C++ and the Standard Template Library (STL) and how to use these within a game. This book fills the void. It is a very good book that covers the required material, but it does require that you have more knowledge than an absolute beginner.

    The book covers the major aspects of C++ such as inheritance and encapsulation in a very easy to understand and accessible way. The examples for the games are clear, concise, well documented, and very carefully explained. It uses nothing other than the STL to demonstrate how to implement the code, which means that anyone with a recent rev of a C++ compiler can use the book.

    I subtracted a single star out of five because the chapter on pointers is insufficient, in my opinion. While the explanations and diagrams make the chapter easier to understand than many books, pointers are still made more complex than is really necessary. There is also no form of exception handling when “new” is used, which is a fundamental flaw with no real excuse given in the book for why is it not handled. It is too easy for new students of the language to get in the habit of letting memory handling go unchecked. Other than these flaws, I do recommend the book, especially to students who want to learn C++ for the purpose of getting into game programming.
    Rating: 4 / 5

  3. I am not going to bash the book. I haven’t read enough to make that kind of judgement (I don’t think I intend to read much more). I have glanced over the material, and let me warn anyone planning on buying this book: This book is for the absolute beginner to programming, not game programming, programming in general. The most complicated program outputs to the console. So don’t expect to develop any windowed applciations or anything practical. In summary, this is a book that teaches C++ that orients the examples towards elementary text-based games. If you are like me, trying to get a niche in 3D game programming and already have programming experience, buy something else. If you are absolutely beginning, this book could introduce you to programming, but I would recommend a book specifically geared toward teaching C++. I find Premier books to be riddled with careless mistakes, so it is best to buy a book from a publisher like Addison Wesley, Wiley, Pearson, Wrox or O’rielly. This way you will be formally introduced to a language like C++ and you can learn about genuine game programming from the perspective of a experienced programmer. I recommend baby steps – learn the language first, then games. I hope this is helpful. Just looking out for other weathered programmers like myself.
    Rating: 3 / 5

  4. As I went through this book, I thought that it was very similar to the “[programming language X] for Absolute Beginners” series. It turns out that the author did, in fact, also write “Python for Absolute Beginners”, so there you go.

    The code snippet that is supposed to prevent the console from automatically closing upon program completion doesn’t always work as intended. I wrote a method that handled this better, so no biggie.

    Other than that, I think this is a good introduction for someone new to C/C++ and to programming in general.

    It might be disappointing for people who want to program graphics, DirectX, OpenGL, and the like — the programs here are strictly console. You have to start somewhere, though, and if you want to program games in C/C++, you first have to understand C/C++. This book teaches the basics of C/C++ well.

    If you want to make pretty pictures and don’t care what language you’re doing it in, though, then Michael Dawson’s “Python for Absolute Beginners” will give you more satisfaction because Python is both a serious language (several commercially successful games like “Freedom Force” have been written in Python), and easier to learn and deal with than C/C++.

    It’s your choice: if you want to start learning C/C++, this is a good introduction; if you want to learn game programming with graphics, start with “Python for Absolute Beginners” and then go on to a book like “Game Programming with Python”.
    Rating: 4 / 5

  5. I’ve been a programmer (vb, asp, perl) for years and have always wanted to get into the higher leveled language of C++ but could never find a book that I enjoyed that could teach me the basics. This book was my savior and the perfect intro to C++, better than any other book I’ve been able to find.

    The title is misleading because it’s gaming aspect is just for reference. Each program is given a background in a game environment just so the problem at hand makes sense.

    This book teaches good practice, preplanning and it’s code examples and explanations are excellent and thorough without getting too involved in everything. Read a chapter, go back and do the examples and it all starts to make sense, I’d recommend this book as a great starting point to anyone that wants to learn C++.
    Rating: 5 / 5

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.