C++ foundations through tiny games
- 1Hello, game world: your first C++ program
Building and running a C++ program, game variables and types, the player's input and decisions, and positions and velocities as vectors.
Makes A hero stat card and a treasure-door game
- 2Decisions and the game loop: guess the number
Conditions, while loops and random numbers: the loop at the heart of every game.
Makes A guess-the-number game with lives
- 3Loops, strings and arrays: a word-scramble game
for loops, text with std::string and arrays.
Makes A word-scramble puzzle
- 4Functions: a dice battle
Splitting a program into functions with parameters and return values.
Makes A dice battle against the computer
- 5std::vector and the inventory
Lists that grow and shrink with std::vector, and searching and sorting them.
Makes An inventory system
- 6References, pointers and memory: how engines think
How memory works, references and pointers, and why engines care about them.
Makes A party of heroes that share one list
- 7Structs and classes: Player and Enemy
Grouping data and behaviour into structs and classes.
Makes Player and Enemy classes that fight
- 8Project week: a text adventure
Planning, building and testing a bigger program of their own.
Makes A text adventure of their own design
๐ฉ MilestoneBy week 8, your teen writes complete C++ console games: a guessing game, a dice battle and a text adventure of their own.