flame_gallery_slice 0.1.0
flame_gallery_slice: ^0.1.0 copied to clipboard
Fruit Slice: a swipe-to-slice Flame mini game for Flame Gallery. Brandable sprites, colors and texts, with timer, lives and bombs.
flame_gallery_slice example #
import 'package:flame_gallery_core/flame_gallery_core.dart';
import 'package:flame_gallery_slice/flame_gallery_slice.dart';
import 'package:flutter/material.dart';
Future<GameResult?> play(BuildContext context) => Navigator.of(context).push(
MaterialPageRoute<GameResult>(
fullscreenDialog: true,
builder: (_) => const GameHostPage(
game: FruitSlice(config: SliceConfig(timeLimit: Duration(seconds: 45))),
),
),
);
Most apps use the flame_gallery
facade instead: FlameGallery.show(context, game: const FruitSlice()).