flame_gallery_match 0.1.0
flame_gallery_match: ^0.1.0 copied to clipboard
Sweet Swap: a match-three swap puzzle Flame mini game for Flame Gallery with cascades, move or time limits, target scores and seeded boards.
flame_gallery_match example #
import 'package:flame_gallery_core/flame_gallery_core.dart';
import 'package:flame_gallery_match/flame_gallery_match.dart';
import 'package:flutter/material.dart';
Future<GameResult?> play(BuildContext context) => Navigator.of(context).push(
MaterialPageRoute<GameResult>(
fullscreenDialog: true,
builder: (_) => const GameHostPage(
game: SweetSwap(config: MatchConfig(moveLimit: 15, targetScore: 1000)),
),
),
);
Most apps use the flame_gallery
facade instead: FlameGallery.show(context, game: const SweetSwap()).