Tetris
A downloadable game for Windows
<!-- HEADER / OVERVIEW -->
<!-- GAMEPLAY FEATURES SECTION -->
<!-- CONTROLS SECTION -->
<!-- SOURCE CODE / GITHUB SECTION -->
🕹️ Tetris Architectural Prototype
Welcome! This project is a custom-built Tetris Prototype developed primarily as a hands-on exploration of core Software Architecture Design Patterns combined with mechanics from modern Tetris titles.
<!-- DESIGN PATTERNS SECTION -->🏗️ Design Patterns Implemented
This engine was constructed cleanly from the ground up utilizing the following software engineering patterns:
- Command Pattern: Decouples player input actions (movement, rotations, drops) into encapsulated commands, allowing clean control mapping and execution.
- Factory Pattern: Dynamically instantiates tetromino pieces and game objects smoothly throughout play.
- State Pattern: Manages state transitions across game loops, level progressions, and active gameplay states (including standard vs. Frenzy states).
- Singleton Pattern: Ensures centralized management for core game systems like scoring, audio, and global game state.
✨ Key Gameplay Features
- Level Progression & Escalation: Clear 4 lines to advance to the next level.
- Garbage Line Mechanics: Reaching Level 3 introduces rising garbage lines from the bottom to add an extra layer of challenge!
- Frenzy State (2x Multiplier): Every 2 levels, enter a high-energy Frenzy State that doubles all point yields (2x Score Multiplier).
- Hold & Preview Queues: Full modern utility—hold a piece for later emergency maneuvers using a dedicated swap key, and see upcoming pieces in advance.
🎯 Base Scoring System
Clearing multiple lines in a single drop rewards significantly higher base points (which are further multiplied during Frenzy State):
| Lines Cleared | Base Points |
|---|---|
| 1 Line (Single) | 100 pts |
| 2 Lines (Double) | 300 pts |
| 3 Lines (Triple) | 500 pts |
| 4 Lines (Tetris) | 800 pts |
🎮 Controls
A — Move Left
D — Move Right
S — Soft Drop (1 step)
SPACE — Hard Drop (Bottom)
Q — Rotate Left
E — Rotate Right
F — Hold / Swap Piece
💻 Source Code & Architecture
Check out the full source code and implementation details on GitHub:
📂 View GitHub Repository (Kizara71/Tetris)Download
Download
Tetris.zip 36 MB

Leave a comment
Log in with itch.io to leave a comment.