Our project draws inspiration from our deep concern for the environment, particularly the dire issue of plastic pollution in our oceans. Witnessing the suffering of innocent sea creatures like turtles and fish due to plastic waste deeply saddens us. Consequently, we are driven by a strong desire to showcase actionable steps we can take to make a positive difference. The game was built for DEVPOST Global Gamers Challenge - Flutter
Scuba Sweep aims to shed light on the pressing issue of ocean plastic pollution. Players immerse themselves in the role of a diver navigating through the ocean depths, tasked with collecting different types of plastic debris encountered along the way. Amidst this mission, they must also navigate past hazardous sea creatures, adding an element of challenge and urgency to the gameplay experience.
![](https://private-user-images.githubusercontent.com/30495155/310603284-5125c4c4-1cf6-466c-a79c-d7af08701c12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MjcyNzUsIm5iZiI6MTcyNDUyNjk3NSwicGF0aCI6Ii8zMDQ5NTE1NS8zMTA2MDMyODQtNTEyNWM0YzQtMWNmNi00NjZjLWE3OWMtZDdhZjA4NzAxYzEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE5MTYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM0OTIzYTkyNjcxMzgwYTg5YWJhMzhmNjljNjY0MmZjMzRiNjg5NjA4ZWVhNzJlMjU0NDcwYTY1ZWE0NTEzZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CHHfiSteVDQlWE8keiUvlthgHMU11koYXW0cJ8BT0RQ)
![](https://private-user-images.githubusercontent.com/30495155/310602338-e3faab95-55e6-4985-9ed7-9195ca6b5214.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MjcyNzUsIm5iZiI6MTcyNDUyNjk3NSwicGF0aCI6Ii8zMDQ5NTE1NS8zMTA2MDIzMzgtZTNmYWFiOTUtNTVlNi00OTg1LTllZDctOTE5NWNhNmI1MjE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE5MTYxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxZWU3NDRhNGVhZDdmYmRmN2EyYzIyYTcyYjc1ZmUwNzE3NmRiNTEzYjg4YzdhYjUyNmM4NGYxODhkOGVjMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Cs75YOjVYD4vLVfcv3Jh6ei5iE4teAWUZlVHoeLmQBM)
![](https://private-user-images.githubusercontent.com/30495155/310602336-02084009-e844-42b5-915e-59fe1a08277e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MjcyNzUsIm5iZiI6MTcyNDUyNjk3NSwicGF0aCI6Ii8zMDQ5NTE1NS8zMTA2MDIzMzYtMDIwODQwMDktZTg0NC00MmI1LTkxNWUtNTlmZTFhMDgyN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MTExMDVmYmIzMGUzZjBjYzU3MjAzMzUwMzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TGne-yyOzHoyIepffOlM2klR-gNc1jEgjxWOkzOuVDY)
The game is crafted using Flutter, with Flame serving as the game engine and Riverpod for state management. Players have the freedom to select their own nickname to personalize their score tracking experience.
As the game begins, the diver component is introduced, automatically ascending and responsive to left or right movements via drag controls. Gradually, plastic and enemy components are introduced, each featuring distinct movements tailored to their creature type, heightening the challenge for players.
Additionally, divers can collect booster components like the shell pearl, providing a temporary shield, offering protection against enemy encounters. The game concludes when the player component collides with enemies, signaling the end of the gameplay session.
Foundation is built with Flutter Presetup tool that we developed internaly to help kickstart new projects.
-
Flutter version 3.16.2
-
[Use fvm for flutter versioning if default flutter version is not right]
-
if fvm flutter is not setup in your working environment (vs code/ android studio) use prefix fvm when running command
fvm flutter build ...
-
vs code settings.json for fvm usage automatically based by project
"dart.flutterSdkPath": ".fvm/flutter_sdk",
// Remove .fvm files from search
"search.exclude": {
"**/.fvm": true
},
// Remove from file watching
"files.watcherExclude": {
"**/.fvm": true
},
This project uses Flutter flavor, with two flavors:
- dev
- prod
Populate lib/main_{flavor}.dart
file to update params for specific environments
-
To run dev env debug:
flutter run --flavor dev -t lib/main_dev.dart
To run prod env debug:
flutter run --flavor prod -t lib/main_prod.dart
Build per flavors, for android firebase build apk and for play store appbundle
- Dev APK:
fvm flutter build apk --split-per-abi --flavor dev -t lib/main_dev.dart
- Prod AppBundle:
fvm flutter build appbundle --flavor prod -t lib/main_prod.dart
- Dev ipa:
fvm flutter build ipa --flavor dev -t lib/main_dev.dart
- Prod ipa:
fvm flutter build ipa --flavor prod -t lib/main_prod.dart
To assets folder add icons named by env launcher-icon-dev.png
, launcher-icon-prod.png
and then run:
fvm flutter pub get && fvm flutter pub run flutter_launcher_icons:main -f flutter_launcher_icons*
fvm flutter pub run build_runner build --delete-conflicting-outputs