License information for card game SFX
maintemplates/card/assets/sfx/ directory are created by Filip Hracek and are licensed under CC0 (Public Domain). You are free to use, modify, and distribute these assets without permission or attribution.repository·main·Indexed 21 days ago
https://github.com/flutter/gamesOfficial code for the Flutter Casual Games Toolkit, featuring gaming templates and samples. It provides structured starting points for building various game types, including 2D platformers, card games, and endless runners. The repository includes a `sample_downloader` tool for easy project access and demonstrates specific functionalities such as ads integration and multiplayer capabilities using Firebase Cloud Firestore.
templates/card/assets/sfx/ directory are created by Filip Hracek and are licensed under CC0 (Public Domain). You are free to use, modify, and distribute these assets without permission or attribution.templates/basic/assets/sfx/ directory are created by Filip Hracek and are licensed under CC0 (Public Domain). You are free to use, modify, and distribute these sounds for any purpose without attribution.templates/endless_runner/assets/sfx/ directory are created by Lukas Klingsbo and are licensed under CC0 (Public Domain). You are free to use, modify, and distribute these sounds without restriction.The flutter/games repository is organized into two main categories to help you find the right starting point for your project:
basic, card, or endless_runner). These are designed to be built upon.ads integration or multiplayer capabilities..
├── templates
│ ├── basic
│ ├── card
│ └── endless_runner
└── samples
├── ads
├── multiplayer
└── ...shared_preferences package. To modify which preferences are saved or how they are handled, edit the files in lib/settings/persistence.The project uses a feature-first organization. Core gameplay logic should be implemented in lib/play_session/.
Key directories include:
lib/audio/: Audio management logic.lib/main_menu/: Main menu screens.lib/settings/: Settings and persistence.lib/style/: Theming and styling.lib/game_internals/: Core game mechanics.State management is intentionally low-level to avoid dependencies on code generation (like build_runner), but you are encouraged to replace it with your preferred paradigm.
The project uses a loose, shallow, feature-first directory structure in lib/. Core gameplay logic is located in lib/flame_game/. Other features are organized by name (e.g., audio, main_menu, settings). State management is intentionally low-level to avoid dependencies on code generation like build_runner during initial development.
lib
├── app_lifecycle
├── audio
├── flame_game
├── level_selection
├── main_menu
├── player_progress
├── settings
├── style
└── main.dart
└── router.dartThe template supports building for iOS, Android, Web, and Desktop.
peanut package. It builds using the canvaskit renderer and can be configured to push directly to GitHub Pages.# iOS
flutter build ipa && open build/ios/archive/Runner.xcarchive
# Android
flutter build appbundle && open build/app/outputs/bundle/release
# Web (requires peanut package)
flutter pub global run peanut \
--web-renderer canvaskit \
--extra-args "--base-href=/name_of_your_github_repo/" \
&& git push origin --set-upstream gh-pagesThe easiest way to access templates and samples is by using the sample_downloader tool. This tool allows you to download specific projects from this repository without cloning the entire repository manually.
dart pub global activate sample_downloadersample_downloaderdart pub global activate sample_downloader
sample_downloadersample_downloader tool. To use the downloader, ensure the Flutter SDK is installed, then activate the tool via dart pub global activate sample_downloader and run sample_downloader from any directory.dart pub global activate sample_downloader
sample_downloaderTo change the icon, update assets/icon-adaptive-foreground.png and assets/icon.png. Then, run the flutter_launcher_icons tool. You can further configure the icon appearance in the flutter_icons: section of your pubspec.yaml.
dart run flutter_launcher_icons:mainsample_downloader command-line tool. To use the tool, first activate it globally via dart pub global activate sample_downloader, then run sample_downloader from any directory and follow the prompts.dart pub global activate sample_downloader
sample_downloader