Familiarize yourself with the details added to the code, especially the variable names.
- [Instructor] Hi and welcome to the next section…of the course,…Layering Views and Implementing the HUD.…In the previous section,…we added bullets and pickups to the game…and also saw objects' interaction…by detecting their collision.…In this section,…we will be adding SFML text objects…and manipulate them,…and also adding the text to the game.…Then we will generate a second view instance and a HUD.…We now move on to the first video of this section,…adding all the text and HUD objects.…In this video,…we will add the extra include directive…and create another view object for screen resolution,…and finally,…we will create the effect…of allowing the game world to scroll.…
We will be manipulating a few strings in this section.…This is so we can format the HUD…and the level up screen.…Add the extra include directive highlighted here…so we can make some sstream objects to achieve this.…Next add this rather lengthy code.…To help identify where you should add the code,…the new code is highlighted,…and this code ends just above our main game loop code.…
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
1. C++, SFML, Visual Studio, and Starting the First Game
2. Variables, Operators, and Decisions
3. C++ Strings, SFML Time, Player Input, and HUD
4. Loops, Arrays, Switch, Enumerations, and Functions
5. Collisions, Sound, and End Conditions
6. Object-Oriented Programming, Classes, and SFML Views
7. C ++ References, Sprite Sheets, and Vertex Arrays
8. Pointers, the Standard Template Library, and Texture Management
9. Collision Detection, Pickups, and Bullets
10. Layering Views and Implementing the HUD
Updating the HUD each frame3m 24s
11. Sound Effects, File I/O, and Finishing the Game
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.