2026
Arcade Games
A C++ and SDL2 desktop collection of six arcade games: Flappy Bird, Doodle Jump, Snake, Tetris, Pong and Breakout. A shared menu, game loop and high-score system bring the individual modes together in one app.
Project roles
Technologies and tools
- Brought six independent game modes — Flappy Bird, Doodle Jump, Snake, Tetris, Pong and Breakout — together in one app. Defined a shared `Game` interface for resetting, updating, rendering, handling key input, reporting scores and checking game-over state; a single function launches the selected mode.
- Built a main menu navigated with the Up and Down arrows, with games launched by Enter or keys 1–6. The menu highlights the selected game and displays its high score. During play, the interface shows the score, control hint and game-over screen. R restarts a game; Escape returns to the menu and saves a new personal best. Escape from the menu exits the application.
- Flappy Bird: implemented flap input on Space or Up, gravity, pairs of pipes with a fixed 125-pixel gap, scrolling obstacles, one point for each pair passed, and collision checks against pipes and playfield boundaries.
- Doodle Jump: implemented platform jumping with gravity and bounce physics, horizontal screen wrapping, vertical camera scrolling and continuous recycling of platforms above the playfield. Some platforms move horizontally. Landings add points, and falling below the screen ends the run.
- Snake: implemented grid-based movement in 20-pixel steps, arrow-key control that prevents an immediate reversal, random apple placement outside the snake's body, and growth with a score increase when food is eaten. Hitting a wall or the snake's own body ends the run.
- Tetris: built a 10 × 20-cell board and seven tetromino types dealt from a shuffled seven-piece bag. Pieces can move left and right, descend faster, rotate and hard-drop with Space. The game validates positions, locks pieces, clears completed rows and awards 100 points per row. The game ends when a new piece cannot fit.
- Pong: implemented play against a computer opponent that estimates the ball's reflected position but deliberately reacts with some inaccuracy. Each serve begins with a three-second countdown; the ball bounces off the walls and paddles, and its speed increases by 12% after every five player returns, up to 2.4 times its initial speed. The player scores when the ball passes the opponent's paddle; missing the ball ends the run.
- Breakout: implemented a paddle, ball and a field of 72 bricks arranged in 6 rows of 12. A hit brick disappears and awards 10 points; the ball reflects according to the side it struck. Movement is simulated in substeps of at most 4 pixels so the ball does not pass through thin bricks at higher speeds. Letting it cross the bottom boundary ends the run.
- Created a shared SDL2 graphics shell with an 800 × 600 window, primitive and rectangular-frame drawing, and a built-in 5 × 7 bitmap font for letters and digits. All games run in a shared loop with frame-time calculation and a capped update step. The app first requests a hardware renderer with vertical synchronization and falls back to a software renderer if unavailable.
- Implemented persistence for six high scores in the local `scores.dat` file: updated a mode's record when a player returns from a game and loaded saved scores into the menu on the next launch. Configured a single `arcade` executable with CMake, C++17, SDL2 discovery through pkg-config and compiler warnings `-Wall -Wextra -Wpedantic`. Wrote the `run.sh` Bash script to configure the build, compile and launch the app, including after moving a project with a CMake cache that points to its previous path.
- Prepared Russian and English documentation with requirements, build instructions, source layout, a main-menu screenshot and a GIF demonstration for every game mode. Added the Apache License 2.0 and documented the project as a small experiment in classic game mechanics without further interface or feature development.

