13 classic mini games I developed in Unity from scratch, designed as a hands-on reference for game development students learning core mechanics, algorithms, and data structures.
Provide a self-contained collection of well-known game implementations that cover the fundamental patterns encountered in game development exams and entry-level projects. Each game focuses on the core mechanic rather than visual polish, making the underlying logic easy to study and reproduce. The repository is intended as a rebuild-it-yourself exercise: attempt each game from scratch and use this repo as a reference when stuck.
| Topic | Covered By |
|---|---|
| Game loops & state machines | Tetris, Minesweeper, Tic Tac Toe |
| 2D physics & collision | Asteroids, Breakout, Pong, Flappy Bird |
| Grid-based logic | Minesweeper, Tetris, Snake, Tic Tac Toe |
| Spawning & object pooling | Bubble Shooter, Space Invaders, Fruit Ninja |
| Input handling & movement | All 13 games |
| Coroutines & timing | Snake, Tetris, Doodle Jump |
| Canvas UI & Prefabs | Pause menu, Game Over/Won panels in every game |
| Simple AI | Pong (computer-controlled opponent) |
Every game includes a Pause Menu (Esc) and a Game Over / Won panel.
| # | Game | Controls | Core Mechanic |
|---|---|---|---|
| 1 | Asteroids | WASD move · Space shoot |
Wraparound movement, projectile spawning |
| 2 | Breakout | ← → move |
Ball reflection angles, brick destruction |
| 3 | Bubble Shooter | LMB shoot |
Grid snapping, flood-fill matching |
Asteroids · Breakout · Bubble Shooter
| # | Game | Controls | Core Mechanic |
|---|---|---|---|
| 4 | Doodle Jump | A D move |
Procedural platform generation, vertical scrolling |
| 5 | Flappy Bird | Space jump |
Gravity, gap collision, score gating |
| 6 | Fruit Ninja | LMB hold + mouse move |
Swipe detection, fruit slicing physics |
Doodle Jump · Flappy Bird · Fruit Ninja
| # | Game | Controls | Core Mechanic |
|---|---|---|---|
| 7 | Minesweeper | LMB click |
Recursive flood reveal, mine adjacency counting |
| 8 | Tetris | A D move · Q E rotate |
Piece rotation matrices, line clearing |
| 9 | Tic Tac Toe | LMB click |
Win-condition checking, turn management |
Minesweeper · Tetris · Tic Tac Toe
| # | Game | Controls | Core Mechanic |
|---|---|---|---|
| 10 | Pong | W S move |
Ball physics, simple AI opponent |
| 11 | Snake | WASD move |
Linked-list body, grid-based growth |
| 12 | Space Invaders | A D move · Space shoot |
Formation movement, projectile collision |
Pong · Snake · Space Invaders
| # | Game | Controls | Core Mechanic |
|---|---|---|---|
| 13 | Space Wars | W S move · LMB shoot |
Side-scrolling combat, enemy wave spawning |
Space Wars
git clone https://github.com/maybebool/UnityMiniGames.git- Open the project in Unity 2021.3+.
- In the Project window, navigate to
Assets/Scenes/. - Double-click any scene to open a game.
- Press Play.
Prerequisites: Unity 2021.3+.
| Category | Technology |
|---|---|
| Engine | Unity 2021.3+ |
| Language | C# (MonoBehaviour, Coroutines) |
| Rendering | Unity 2D, Sprite Renderer, Canvas UI |
| Input | Unity Input System (keyboard + mouse) |
The focus is on core mechanics rather than visual polish. Possible extensions include:
- Visual overhaul with consistent art style across all 13 games
- High-score persistence using
PlayerPrefsor JSON serialisation - Difficulty scaling (adaptive enemy speed, shrinking paddles, faster drops)
- Mobile touch input for deployment on Android / iOS
- Menu hub scene with game selection and progress tracking
- Additional games (Pac-Man, Connect Four, 2048, Sudoku)












