This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Creating the main game loop
- Drawing the game background
- Handling errors
- Manipulating C++ variables
- Randomizing numbers
- Making decisions with if, else, and switch
- Moving game objects
- Pausing and restarting games
- Adding scoring and messages
- Using class enumerations and arrays
- Adding sound effects
- Object-oriented programming in C++
- C++ references
- Texture management
- Collision detection
- Implementing the HUD
- Finishing the game
Skill Level Beginner
- [Eddy] Hi, welcome to Beginning C++ Gaming Program - Part 1 by John Horton, a video course by Packt Publishing. I'm Eddy Leonard and I'll be the voiceover artist for this course. John Horton is a coding and gaming enthusiast based in the UK. He has passion for writing apps, games, books, and blog articles about programming. Especially for beginners. He is the founder of Game Code School. Which is dedicated to helping complete beginners start coding using the language and platform that are best for them.
He's authored many technological books, most recently these. This course is about learning C++ programing, the fun way. Starting from zero experience you will learn the basics of C++. Such as variables and loops, through to advance topics such as inheritance and polymorphism. Everything you learn will be put into practice by building fully playable games. These are our three projects Timber, Zombie Arena and Thomas Was Late.
This course, that is part one, would cover the first two games along with the basics of C++. The third game would be built in part two, where we would learn some advanced concepts. Let's see a bit in detail what is in store for part one. Section one is quite a hefty one but we will learn absolutely everything we need in order to have the first part of our first game up and running. Be it installing Visual Studio , adding project assets or drawing the game background. In section two we will do quite a bit more drawing on screen and to achieve this we will need to learn some of the basics of C++.
Third section will give guide how to manipulate text and display it on the screen. And how a visual time-bar can inform the player and create a sense of urgency in the game. Section four has all the fundamental concepts of C++ that will move our understanding on enormously. We will then use everything we know to make the main game mechanic, the three branches move. Fifth section will be the final phase of the first project. We would finalize the first game by adding sprites, sound FX and some improvements.
Section six has a fair amount of theory but the theory will give us knowledge to start using OOP, that is object oriented programming. We would plan our next game project and put the player class to work. In seventh section, we will explore C++ references, SMFL vertex arrays and code of random scrolling background. Section 8 will help us learning about pointers, STL and editing some existing code to use the texture holder class for the player and background.
Nine section will cover shooting bullets, adding a crosshair and hiding the mouse pointer, spawning pickups and detection collisions. In section 10 we'll add text to level up screen, create the second view and add a HUD. In the final section, we'll save and load the high score, and sound effects and allow the player to level up, cool. But before we start I would want you to know that these would be the prerequisites for this course.
Take a good look and ensure that you have them before you start coding. All we software used in course is free. Obtaining and installing the software is covered step by step within the course. It used Visual Studio for Windows throughout. But experienced Linux and Mac users will probably have no trouble running the code and following the instructions using their favorite programming environment. This course is perfect for you if any of these describe you. You have no C++ programming knowledge whatsoever or a need a beginner level refresher course or you want to learn to build games or just use games as an engaging way to learn C++.
Or you have aspirations to build a game one day, or even if you just want to have loads of fun and impress friends with your creations. It will help you learn C++ in a fun way. So, let's begin this journey together and I hope to see there.