Sale!

Beginning C++ Game Programming: Learn C++ from scratch by building fun games

Add your review

Original price was: $49.99.Current price is: $29.99.

Original price was: $49.99.Current price is: $29.99.

Sale!

Note: Prices may fluctuate as sellers adjust them regularly. You'll see the latest price at final checkout.
Add to wishlistAdded to wishlistRemoved from wishlist 0
Add to compare


Get to grips with programming and game development techniques using C++ libraries and Visual Studio 2022 with this updated edition of the bestselling series

Get With Your Book: PDF Copy, AI Assistant, and Next-Gen Reader Free

Key FeaturesCreate fun games in C++, with this up-to-date guide covering the latest features of C++20 and VS2022Build clones of popular games such as a Timberman clone, a Pong game, a Zombie Survival Shooter, and a platform endless runner gameDiscover tips to expand your finished games by thinking critically, technically, and creativelyBook Description

Always dreamed of creating your own games? With the third edition of Beginning C++ Game Programming, you can turn that dream into reality! This beginner-friendly guide is updated and improved to include the latest features of VS 2022, SFML, and modern C++20 programming techniques. You’ll get a fun introduction to game programming by building four fully playable games of increasing complexity. You’ll build clones of popular games such as Timberman, Pong, a Zombie survival shooter, and an endless runner.

The book starts by covering the basics of programming. You’ll study key C++ topics, such as object-oriented programming (OOP) and C++ pointers and get acquainted with the Standard Template Library (STL). The book helps you learn about collision detection techniques and game physics by building a Pong game. As you build games, you’ll also learn exciting game programming concepts such as vertex arrays, directional sound (spatialization), OpenGL programmable shaders, spawning objects, and much more. You’ll dive deep into game mechanics and implement input handling, levelling up a character, and simple enemy AI. Finally, you’ll explore game design patterns to enhance your C++ game programming skills.

By the end of the book, you’ll have gained the knowledge you need to build your own games with exciting features from scratch.

What you will learnSet up your game project in VS 2022 and explore C++ libraries such as SFMLBuild games in C++ from the ground up, including graphics, physics, and input handlingImplement core game concepts such as game animation, game physics, collision detection, scorekeeping, and game soundImplement automatically spawning objects and AI to create rich and engaging experiencesLearn advanced game development concepts, such as OpenGL shaders, texture atlases, and parallax backgroundsScale and reuse your game code with modern game programming design patternsWho this book is for

This book is perfect for you if you have no C++ programming knowledge, you need a beginner-level refresher course, or you want to learn how to build games or just use games as an engaging way to learn C++. Whether you aspire to publish a game (perhaps on Steam) or just want to impress friends with your creations, you’ll find this book useful

Table of ContentsWelcome to Beginning C++ Game Programming Third Edition!Variables, Operators & Decisions: Animating SpritesC++ Strings, SFML Time : Player Input & HUDLoops, Arrays, Switch, Enumerations & Functions: Implementing Game MechanicsCollisions, Sound & End Conditions: Making The Game PlayableObject Oriented Programming: Starting the Pong gameDynamic collision detection and physics: Finishing the Pong GameSFML Views: Starting the Zombie Shooter GameC++ References, Sprite sheets & Vertex ArraysPointers, Standard Template Library & Texture ManagementCollision Detection, Pickups & BulletsLayering Views & Implementing The HUD

(N.B. Please use the Read Sample option to see further chapters)


From the brand

Brand story Packt booksBrand story Packt books

Explore More

Packt is a leading publisher of technical learning content with the ability to publish books on emerging tech faster than any other.

Our mission is to increase the shared value of deep tech knowledge by helping tech pros put software to work.

We help the most interesting minds and ground-breaking creators on the planet distill and share the working knowledge of their peers.

Publisher ‏ : ‎ Packt Publishing
Publication date ‏ : ‎ May 31, 2024
Edition ‏ : ‎ 3rd ed.
Language ‏ : ‎ English
Print length ‏ : ‎ 648 pages
ISBN-10 ‏ : ‎ 1835081746
ISBN-13 ‏ : ‎ 978-1835081747
Item Weight ‏ : ‎ 2.45 pounds
Dimensions ‏ : ‎ 7.5 x 1.49 x 9.25 inches
Best Sellers Rank: #78,942 in Books (See Top 100 in Books) #6 in C++ Programming Language #28 in Game Programming #30 in Introductory & Beginning Programming
Customer Reviews: 4.3 4.3 out of 5 stars (67) var dpAcrHasRegisteredArcLinkClickAction; P.when(‘A’, ‘ready’).execute(function(A) { if (dpAcrHasRegisteredArcLinkClickAction !== true) { dpAcrHasRegisteredArcLinkClickAction = true; A.declarative( ‘acrLink-click-metrics’, ‘click’, { “allowLinkDefault”: true }, function (event) { if (window.ue) { ue.count(“acrLinkClickCount”, (ue.count(“acrLinkClickCount”) || 0) + 1); } } ); } }); P.when(‘A’, ‘cf’).execute(function(A) { A.declarative(‘acrStarsLink-click-metrics’, ‘click’, { “allowLinkDefault” : true }, function(event){ if(window.ue) { ue.count(“acrStarsLinkWithPopoverClickCount”, (ue.count(“acrStarsLinkWithPopoverClickCount”) || 0) + 1); } }); });

11 reviews for Beginning C++ Game Programming: Learn C++ from scratch by building fun games

0.0 out of 5
0
0
0
0
0
Write a review
Show all Most Helpful Highest Rating Lowest Rating
  1. Jesse Knott

    Excellent guide to C++ and Game programming.
    This is a great book for people wanting to get into game development. Experience with C/C++ is definitely helpful, although not mandatory for the book to be useful.The book walks you through several basic 2D game builds. Instructions in the book are well-defined, and explained. The book doesn’t just tell you to “write this code here”, but it tells you WHY you write that code there, and what that code does.The sample programs in the book are easy to follow. The instructions make it easy to hack the code yourself and make personal modifications, seeing how they alter the performance and functionality.If I were to give any gripe or critique to the book, it would be that the book focuses on MS Visual Studio. That being said, the instructions are written in such a way, that you can definitely use the book with Linux, but you just need to know the steps to setting up the libraries and dependencies in your IDE or Makefile.

    Helpful(0) Unhelpful(0)You have already voted this
  2. rockspawner

    Scratch learning
    So far so good learn a game from scratch no engine

    Helpful(0) Unhelpful(0)You have already voted this
  3. Sextonator

    A good book
    I found this explained things well for me. It was much easier to understand what I was getting into with this.

    Helpful(0) Unhelpful(0)You have already voted this
  4. PArailfan

    A Rewarding Journey
    First things first–If you want to follow along with this book you MUST use version 2.6.0 of SFML. I tried the most recent version of SFML and the RenderWindow class didn’t understand the arguments I was sending to it. This isn’t really the Author’s fault, I’m just mentioning it here as a PSA. With that out of the way, let’s talk about the book.The good:This is not like copying code from a 1980’s computer magazine. Here, the Author does a very good job of explaining the code and providing as many opportunities as possible to run the incomplete game at various stages to see the progress. Whenever a new concept is introduced, the Author presents simplified theory on the concept before implementing it in the game code. Also, there is a lot of additional information provided that is interesting but not directly related to the code. Lots of links provided. To get the most out of this book, I recommend taking the time to review and really understand the code every step of the way before moving on.The bad:The errors in the code. There are a number of places where the actual code is commented out as if it is a part of a previous comment (preceded by a // symbol). This would be bad enough if it happened a few hundred pages in, but is particularly egregious considering it happens throughout the very first chapter! I imagine a complete beginner to c++ would be very confused by this. Also, a major line of code missing on page 514. Strangely, the code in the download bundle does not have these errors. The Pong game has some rather major bugs, but if you understand the code, they’re not hard to fix.The ugly:In the Zombie Shooter game, the hitboxes on the zombies and player character are bigger than they should be. So unless you want to take take damage within smelling distance of a zombie, I recommend getting a png image editor and cropping the extra space around the characters before starting.

    Helpful(0) Unhelpful(0)You have already voted this
  5. Osher Vaknin

    Enriching book for a beginner
    This book is really good for people who want to learn C++/Game Development as it’s title suggests, the explanations in the book are very well done, abstracting subjects so that the beginner can gradually learn harder concepts, I will definitely recommend this book if you’re a beginner.

    Helpful(0) Unhelpful(0)You have already voted this
  6. Robert Welch

    Great
    Great for beginners still trying to learn stuff from this.

    Helpful(0) Unhelpful(0)You have already voted this
  7. Dave

    Poor Fundamentals
    Did not finish this text @ 50 pages in with lots and lots of skimming through the rest of the book.A few brief points:-Mac & Linux users are left in the wind as this text focuses on Windows OS & Visual Studio.-C++ fundamentals are sidelined as the author favors jumping into SFML (which is a mess of an experience for folks to set up in general).-There is a clear focus on “just doing”, not in-depth comprehensionWhile I have experience with Swift, this is one of my first brushes with C++ in the context of game dev. I don’t think I’d recommend it. It’s wild to me that this is reviewed so highly on Amazon with someone giving it 4 stars even though with their background/degree in CS, they state that they still struggled with this text.Largely, I found that the book is inconsistent with info/definitions & oversimplifies a lot in order to get folks making “end products”. Rather than focusing on learning how to think, problem-solve & interrogate things like a programmer, this text prioritizes instant gratification. I found that the author does an incredible disservice to folks by “holding back necessary information” in the hopes of not overwhelming readers.My favorite (sarcasm) part is where at the end of the first chapter, the author answers the likely question of “what if I don’t understand this function stuff?” by beginning with “it doesn’t matter”. The author more or less states how repeated exposure will clear things up. While yes, repeated exposure is helpful, I think it actually does matter whether or not the description of functions is clear to readers. It absolutely does matter if folks understand functions as this is such a fundamental foundation for all programming.Maybe this will work for some folks, but as an educator I was left wanting.

    Helpful(0) Unhelpful(0)You have already voted this
  8. FM

    Absolutely brilliant book!! Would give 6 stars if I could! I must have for anyone beginning game development with SFML!

    Helpful(0) Unhelpful(0)You have already voted this
  9. Paul D. Horwood

    Best book I have seen on this subject. Even if there are typos at the beginning of the book in the programming code. If you know a bit about c++ then you will notice right away. If you are new to it, you may wonder what is going on. It corrects itself in the following paragraphs, but still..

    Helpful(0) Unhelpful(0)You have already voted this
  10. Ismail

    I think this is a great primer for whoever wants to start game development. However this can start being a bit challenging if you are not using Windows. Nothing impossible but I had to highlight it. The difficulty is progressive and is nice. You can download a pdf of the book and I recommend it. It is using C++ 20 and SFML 2.6.x so it’s quite up to date.

    Helpful(0) Unhelpful(0)You have already voted this
  11. iWolverine

    So far its easy to follow, but some of the calculations the author failed to explain, for example why we are taking timeDelta substracting it. Had to take ChatGpt to help understand why the calculation was doing what it was doing. Someone who started C++ will have a bit difficulty to understand. Overall good book.

    Helpful(0) Unhelpful(0)You have already voted this

    Add a review

    Your email address will not be published. Required fields are marked *

    Beginning C++ Game Programming: Learn C++ from scratch by building fun games
    Beginning C++ Game Programming: Learn C++ from scratch by building fun games

    Original price was: $49.99.Current price is: $29.99.

    bestdealsavvy.com
    Logo
    Register New Account
    Compare items
    • Total (0)
    Compare
    0
    Shopping cart