mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 04:47:13 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:dashbook/dashbook.dart';
 | 
						|
import 'package:examples/commons/commons.dart';
 | 
						|
import 'package:examples/stories/animations/animation_group_example.dart';
 | 
						|
import 'package:examples/stories/animations/aseprite_example.dart';
 | 
						|
import 'package:examples/stories/animations/basic_animation_example.dart';
 | 
						|
import 'package:examples/stories/animations/benchmark_example.dart';
 | 
						|
import 'package:flame/game.dart';
 | 
						|
 | 
						|
void addAnimationStories(Dashbook dashbook) {
 | 
						|
  dashbook.storiesOf('Animations')
 | 
						|
    ..add(
 | 
						|
      'Basic Animations',
 | 
						|
      (_) => GameWidget(game: BasicAnimationsExample()),
 | 
						|
      codeLink: baseLink('animations/basic_animation_example.dart'),
 | 
						|
      info: BasicAnimationsExample.description,
 | 
						|
    )
 | 
						|
    ..add(
 | 
						|
      'Group animation',
 | 
						|
      (_) => GameWidget(game: AnimationGroupExample()),
 | 
						|
      codeLink: baseLink('animations/animation_group_example.dart'),
 | 
						|
      info: AnimationGroupExample.description,
 | 
						|
    )
 | 
						|
    ..add(
 | 
						|
      'Aseprite',
 | 
						|
      (_) => GameWidget(game: AsepriteExample()),
 | 
						|
      codeLink: baseLink('animations/aseprite_example.dart'),
 | 
						|
      info: AsepriteExample.description,
 | 
						|
    )
 | 
						|
    ..add(
 | 
						|
      'Benchmark',
 | 
						|
      (_) => GameWidget(game: BenchmarkExample()),
 | 
						|
      codeLink: baseLink('animations/benchmark_example.dart'),
 | 
						|
      info: BenchmarkExample.description,
 | 
						|
    );
 | 
						|
}
 |