Skip to content

Commit 496ab0c

Browse files
committed
Initial commit
0 parents  commit 496ab0c

15 files changed

+1275
-0
lines changed

.gitignore

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
34+
# Symbolication related
35+
app.*.symbols
36+
37+
# Obfuscation related
38+
app.*.map.json
39+
40+
# Android Studio will place build artifacts here
41+
/android/app/debug
42+
/android/app/profile
43+
/android/app/release
44+
45+
# Build folders
46+
android/
47+
ios/
48+
linux/
49+
macos/
50+
web/
51+
windows/

.metadata

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "5874a72aa4c779a02553007c47dacbefba2374dc"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
17+
base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
18+
- platform: android
19+
create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
20+
base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
21+
- platform: ios
22+
create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
23+
base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
24+
- platform: linux
25+
create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
26+
base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
27+
- platform: macos
28+
create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
29+
base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
30+
- platform: web
31+
create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
32+
base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
33+
- platform: windows
34+
create_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
35+
base_revision: 5874a72aa4c779a02553007c47dacbefba2374dc
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
# Flutter Tetris Game
3+
4+
A modern implementation of the classic Tetris game built with Flutter. This project uses the Provider package for state management and provides a fun and interactive experience.
5+
6+
## Features
7+
8+
- **Responsive Gameplay**: Enjoy Tetris on any screen size.
9+
- **Custom Tetromino Shapes**: All classic shapes are included with unique colors.
10+
- **Levels and Speed**: Increase the challenge as you progress through levels.
11+
- **Intuitive Controls**: Swipe and tap for seamless gameplay.
12+
13+
## Screenshots
14+
15+
### Start Screen
16+
<img src="./screenshot1.png" alt="Start Screen" width="500">
17+
18+
### Gameplay
19+
<img src="./screenshot2.png" alt="Gameplay" width="500">
20+
21+
## How to Play
22+
23+
1. Tap the **Start Game** button to begin.
24+
2. Use the following controls:
25+
- **Swipe Left/Right**: Move the piece left or right.
26+
- **Swipe Down**: Drop the piece quickly.
27+
- **Tap**: Rotate the piece.
28+
3. Clear rows to gain points and progress through levels.
29+
4. The game ends when there is no space for a new piece.
30+
31+
## Getting Started
32+
33+
### Prerequisites
34+
35+
- Flutter 3.0.0 or later
36+
- Dart SDK
37+
38+
### Installation
39+
40+
1. Clone the repository:
41+
```bash
42+
git clone https://github.com/your-repo/flutter-tetris.git
43+
cd flutter-tetris
44+
```
45+
46+
2. Install dependencies:
47+
```bash
48+
flutter pub get
49+
```
50+
51+
3. Run the app:
52+
```bash
53+
flutter run
54+
```
55+
56+
## Built With
57+
58+
- [Flutter](https://flutter.dev/)
59+
- [Provider](https://pub.dev/packages/provider)
60+
61+
## License
62+
63+
This project is licensed under the MIT License.
64+
65+
## Created By
66+
67+
CodēCodes
68+
[Website](https://www.cod-e-codes.com) | [GitHub](https://github.com/Cod-e-Codes)

analysis_options.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

assets/fonts/PressStart2P-Regular.ttf

113 KB
Binary file not shown.

0 commit comments

Comments
 (0)