23 lines
1.3 KiB
Markdown
23 lines
1.3 KiB
Markdown
# Tetris
|
|
|
|
## Introduction: A Journey in Code
|
|
|
|
What started as a quest to sharpen my Python skills quickly became something much more exciting. I had brainstormed countless project ideas, but none of them truly matched my abilities or ignited my passion—until inspiration struck. Tetris.
|
|
|
|
The idea hit me like a falling tetromino, and I realized immediately it was the perfect fit. Simple at its core, yet challenging enough to push my skills, it embodied everything I was looking for. Not only is it a timeless and addictively fun game, but it's also the ideal starting point for diving into Pygame, a project that wouldn't rely on step-by-step tutorials.
|
|
|
|
This isn't just about coding; it's about building something I love from the ground up. And honestly? Writing this intro was almost as fun as watching the pieces fall into place!
|
|
**May my Journey begin**
|
|
|
|
## Struktur
|
|
|
|
Tetris/
|
|
│
|
|
├── tetris.py # Hauptskript für das Spiel
|
|
├── tetrominos.py # Tetromino-Klassen und Logik
|
|
├── game_manager.py # Spiellogik (Grid, Zeilen löschen, Spielstatus)
|
|
├── settings.py # Einstellungen (Farben, Größe, Geschwindigkeit)
|
|
├── assets/ # Ordner für Assets wie Bilder, Sounds (falls verwendet)
|
|
│ └── sounds/
|
|
└── README.md # Projektbeschreibung (optional)
|