โ† All courses

C++

Build Breakout using C++ and SFML

Build a classic Breakout/Arkanoid clone with SFML, C++'s go-to library for 2D graphics and games. You'll open a window and run a real-time game loop, build a keyboard-controlled paddle and a bouncing ball as classes, lay out a grid of destructible bricks, detect collisions with SFML's rectangle intersection, and track score and lives until you win or lose.

7 lessons

Start the first lesson

Curriculum

  1. 1SFML: Setup and Installation๐Ÿ“ quiz
  2. 2The Game Loop๐Ÿ“ quiz
  3. 3The Paddle๐Ÿ“ quiz
  4. 4The Ball๐Ÿ“ quiz
  5. 5Bricks and Collisions๐Ÿ“ quiz
  6. 6Score, Lives, and Game Over๐Ÿ“ quiz
  7. 7Final Project: Finish Your Breakout Game

Every lesson is open, take them in order or jump straight to what you need.