mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
33 lines
987 B
Dart
33 lines
987 B
Dart
import 'package:dashbook/dashbook.dart';
|
|
import 'package:padracing/padracing_game.dart';
|
|
import 'package:padracing/padracing_widget.dart';
|
|
import 'package:rogue_shooter/rogue_shooter_game.dart';
|
|
import 'package:rogue_shooter/rogue_shooter_widget.dart';
|
|
import 'package:trex_game/trex_game.dart';
|
|
import 'package:trex_game/trex_widget.dart';
|
|
|
|
String gamesLink(String game) =>
|
|
'https://github.com/flame-engine/flame/blob/main/examples/games/$game';
|
|
|
|
void addGameStories(Dashbook dashbook) {
|
|
dashbook.storiesOf('Sample Games')
|
|
..add(
|
|
'Padracing',
|
|
(_) => const PadracingWidget(),
|
|
codeLink: gamesLink('padracing'),
|
|
info: PadRacingGame.description,
|
|
)
|
|
..add(
|
|
'Rogue Shooter',
|
|
(_) => const RogueShooterWidget(),
|
|
codeLink: gamesLink('rogue_shooter'),
|
|
info: RogueShooterGame.description,
|
|
)
|
|
..add(
|
|
'T-Rex',
|
|
(_) => const TRexWidget(),
|
|
codeLink: gamesLink('trex'),
|
|
info: TRexGame.description,
|
|
);
|
|
}
|