Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

docs.flutter.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.

Learn more

Flutter 3.41 is live! Check out theFlutter 3.41 blog post!

Casual Games Toolkit

Learn about free & open source multiplatform 2D game development in Flutter.

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.

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 with a series of actions that 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 theFlame game engine built using Flutter.

What's included in the toolkit

#

The Casual Games Toolkit provides the following free resources.

  • A repository that includes three game templates that provide a starting point for building a casual game.

    1. Abase game template that includes the basics for:

      • Main menu
      • Navigation
      • Settings
      • Level selection
      • Player progress
      • Play session management
      • Sound
      • Themes
    2. Acard game template that includes everything in the base template plus:

      • Drag and drop
      • Game state management
      • Multiplayer integration hooks
    3. Anendless runner template created in partnership with the open source game engine, Flame. It implements:

      • A FlameGame base template
      • Player steering
      • Collision detection
      • Parallax effects
      • Spawning
      • Different visual effects
    4. A sample game built on top of the endless runner template, called SuperDash. You can play the game on iOS, Android, orweb,view the open source code repo, orread how the game was created in 6 weeks.

  • Developer guides for integrating needed services.

  • A link to aFlame Discord channel. If you have a Discord account, use thisdirect link.

The included game templates and cookbook recipes make certain choices to accelerate development. They include specific packages, likeprovider,google_mobile_ads,in_app_purchase,audioplayers,crashlytics, andgames_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 theGames page, you can leverage up to $900 in offers when you integrate Google services, such asCloud, Firebase, andAds, into your game.

Important

Get started

#

Are you ready? To get started:

  1. If you haven't done so,install Flutter.

  2. Clone the games repo.

  3. Review theREADME file for the first type of game you want to create.

  4. Join the Flame community on Discord (use thedirect link if you already have a Discord account).

  5. Review the codelabs and cookbook recipes.

  6. Set up accounts on AdMob, Firebase, and Cloud, as needed.

  7. Write your game!

  8. Deploy to both the Google Play and Apple stores.

Example games

#

For Google I/O 2022, both the Flutter team and Very Good Ventures created new games.

Other resources

#

Once you feel ready to go beyond these games templates, investigate other resources that our community recommended.

FeatureResources
Animation and sprites

book_5Special effects
handymanSpriter Pro
package_2rive
package_2spritewidget

App review

package_2app_review

Audio

package_2audioplayers
package_2flutter_soloud

Authentication

scienceUser Authentication using Firebase

Cloud services

scienceAdd Firebase to your Flutter game

Debugging

quick_reference_allFirebase Crashlytics overview
package_2firebase_crashlytics

Drivers

package_2win32_gamepad

Game assets
and asset tools

photo_albumCraftPix
photo_albumGame Developer Studio
handymanGIMP

Game engines

package_2Flame
package_2Bonfire
package_2forge2d

Game features

book_5Add achievements and leaderboards to your game
book_5Add multiplayer support to your game

Game services integration

package_2games_services

Level editor

handymanTiled

Monetization

book_5Add advertising to your Flutter game
scienceAdd AdMob ads to a Flutter app
scienceAdd in-app purchases to your Flutter app
scienceGaming UX and Revenue Optimizations for Apps (PDF)

Persistence

package_2shared_preferences
package_2sqflite
package_2cbl_flutter (Couchbase Lite)

Special effects

apiPaint API
book_5Special effects

User Experience

quick_reference_allBest practices for optimizing Flutter web loading speed

Other resources

#

Check out the following videos:

Was this page's content helpful?

Unless stated otherwise, the documentation on this site reflects Flutter 3.38.6. Page last updated on 2026-01-21.View source orreport an issue.


[8]ページ先頭

©2009-2026 Movatter.jp