text stringlengths 1 474 |
|---|
Unit |
<topic_end> |
<topic_start> |
Widget |
<topic_end> |
<topic_start>Casual Games Toolkit |
The Flutter Casual Games Toolkit pulls together new and existing resources |
so you can accelerate development of games on mobile platforms.This page outlines where you can find these available resources.<topic_end> |
<topic_start> |
Why Flutter for games? |
The Flutter framework can create performant apps for six target platforms |
from the desktop to mobile devices to the web.With Flutter’s benefits of cross-platform development, performance, and |
open source licensing, it makes a great choice for games.Casual games fall into two categories: turn-based games |
and real-time games. |
You might be familiar with both types of games, |
though perhaps you didn’t think about them in quite this way.Turn-based games cover games meant for a mass market with |
simple rules and gameplay. |
This includes board games, card games, puzzles, and strategy games. |
These games respond to simple user input, |
like tapping on a card or entering a number or letter. |
These games are well suited for Flutter.Real-time games cover games a series of actions require real time responses. |
These include endless runner games, racing games, and so on. |
You might want to create a game with advanced features like collision detection, |
camera views, game loops, and the like. |
These types of games could use an open source game engine like the |
Flame game engine built using Flutter.<topic_end> |
<topic_start> |
What’s included in the toolkit |
The Casual Games Toolkit provides the following free resources.A repository that includes three new game templates that provide |
a starting point for building a casual game.A base game template |
that includes the basics for:A card game template |
that includes everything in the base template plus:An endless runner template created in partnership |
with the open source game engine, Flame. It implements:A sample game built on top of the endless runner template, |
called SuperDash. You can play the game on iOS, Android, |
or web, view the open source code repo, or |
read how the game was created in 6 weeks.The included game templates and cookbook recipes make certain choices |
to accelerate development. |
They include specific packages, like provider, google_mobile_ads, |
in_app_purchase, audioplayers, crashlytics, and games_services. |
If you prefer other packages, you can change the code to use them.The Flutter team understands that monetization might be a future consideration. |
Cookbook recipes for advertising and in-app purchases have been added.As explained on the Games page, |
you can leverage up to $900 in offers when you integrate Google services, |
such as Cloud, Firebase, and Ads, into your game.error Important |
Terms and conditions apply. |
You must connect your Firebase and GCP accounts to use credits for |
Firebase services and verify your business email during sign up to earn |
an additional $100 on top of the normal $300 credit. |
For the Ads offer, check your region’s eligibility.<topic_end> |
<topic_start> |
Get started |
Are you ready? To get started:Review the README file for the first type of game you want to create.Review the codelabs and cookbook recipes.<topic_end> |
<topic_start> |
Example games |
For Google I/O 2022, both the Flutter team and Very Good Ventures created new |
games.VGV created the I/O Pinball game using the Flame engine. |
To learn about this game, |
check out I/O Pinball Powered by Flutter and Firebase on Medium |
and play the game in your browser.The Flutter team created I/O Flip, a virtual CCG. |
To learn more about I/O Flip, |
check out How It’s Made: I/O FLIP adds a twist to a classic card game with generative AI |
on the Google Developers blog and play the game in your browser.<topic_end> |
<topic_start> |
Other resources |
Once you feel ready to go beyond these games templates, |
investigate other resources that our community recommended.package_2 Flutter package |
api API documentation |
science Codelab |
book_5 Cookbook recipe |
handyman Desktop application |
photo_album Game assets |
quick_reference_all Guidebook_5 Special effects |
handyman Spriter Pro |
package_2 rive |
package_2 spriteWidgetpackage_2 app_reviewpackage_2 audioplayersscience User Authentication using Firebasescience Add Firebase to your Flutter gamequick_reference_all Firebase Crashlytics overview |
package_2 firebase_crashlyticspackage_2 win32_gamepadphoto_album CraftPix |
photo_album Game Developer Studio |
handyman GIMPpackage_2 Flame |
package_2 Bonfire |
package_2 forge2dbook_5 Add achievements and leaderboards to your game |
book_5 Add multiplayer support to your gamepackage_2 games_servicesscience Use the Foreign Function Interface in a Flutter pluginhandyman Tiledbook_5 Add advertising to your Flutter game |
science Add AdMob ads to a Flutter app |
science Add in-app purchases to your Flutter app |
quick_reference_all Gaming UX and Revenue Optimizations for Apps (PDF)package_2 shared_preferences |
package_2 sqflite |
package_2 cbl_flutter (Couchbase Lite)api Paint API |
book_5 Special effectsscience Build next generation UIs in Flutter |
<topic_end> |
<topic_start>Add achievements and leaderboards to your mobile game |
Gamers have various motivations for playing games. |
In broad strokes, there are four major motivations: |
immersion, achievement, cooperation, and competition. |
No matter the game you build, some players want to achieve in it. |
This could be trophies won or secrets unlocked. |
Some players want to compete in it. |
This could be hitting high scores or accomplishing speedruns. |
These two ideas map to the concepts of achievements and leaderboards.Ecosystems such as the App Store and Google Play provide |
centralized services for achievements and leaderboards. |
Players can view achievements from all their games in one place and |
developers don’t need to re-implement them for every game.This recipe demonstrates how to use the games_services package |
to add achievements and leaderboard functionality to your mobile game.<topic_end> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.