mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
Fixing Flame pause and resume engine features (#1066)
* Fixing Flame pause and resume engine features * Update packages/flame/lib/src/game/mixins/game.dart * Apply suggestions from code review Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com> * Update doc/game.md * Update doc/game.md Co-authored-by: Lukas Klingsbo <lukas.klingsbo@gmail.com>
This commit is contained in:
15
examples/lib/stories/system/system.dart
Normal file
15
examples/lib/stories/system/system.dart
Normal file
@ -0,0 +1,15 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:flame/game.dart';
|
||||
|
||||
import '../../commons/commons.dart';
|
||||
import 'pause_resume_game.dart';
|
||||
|
||||
void addSystemStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('System')
|
||||
..add(
|
||||
'Pause/resume engine',
|
||||
(_) => GameWidget(game: PauseResumeGame()),
|
||||
codeLink: baseLink('system/pause_resume_game.dart'),
|
||||
info: PauseResumeGame.info,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user