mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 04:47:13 +08:00 
			
		
		
		
	* Animations, CameraAndViewport, CollisionDetection and Components unified * Added descriptions to effects * Rename input games * Unify input stories * Add info to parallax section * Added descriptions to the rendering examples * Add descriptions to the sprites directory * Fix utils and rendering section * Add descriptions to the widgets section * Delete directory that rebase brought back * Unify game names * Added some styleguide docs for examples * Fix analyze issues * All files should have _example as suffix * Made the FollowComponentExample a bit easier to understand * Change priority of ember
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:dashbook/dashbook.dart';
 | 
						|
import 'package:flame/game.dart';
 | 
						|
 | 
						|
import '../../commons/commons.dart';
 | 
						|
import 'composability_example.dart';
 | 
						|
import 'debug_example.dart';
 | 
						|
import 'game_in_game_example.dart';
 | 
						|
import 'priority_example.dart';
 | 
						|
 | 
						|
void addComponentsStories(Dashbook dashbook) {
 | 
						|
  dashbook.storiesOf('Components')
 | 
						|
    ..add(
 | 
						|
      'Composability',
 | 
						|
      (_) => GameWidget(game: ComposabilityExample()),
 | 
						|
      codeLink: baseLink('components/composability_example.dart'),
 | 
						|
      info: ComposabilityExample.description,
 | 
						|
    )
 | 
						|
    ..add(
 | 
						|
      'Priority',
 | 
						|
      (_) => GameWidget(game: PriorityExample()),
 | 
						|
      codeLink: baseLink('components/priority_example.dart'),
 | 
						|
      info: PriorityExample.description,
 | 
						|
    )
 | 
						|
    ..add(
 | 
						|
      'Debug',
 | 
						|
      (_) => GameWidget(game: DebugExample()),
 | 
						|
      codeLink: baseLink('components/debug_example.dart'),
 | 
						|
      info: DebugExample.description,
 | 
						|
    )
 | 
						|
    ..add(
 | 
						|
      'Game-in-game',
 | 
						|
      (_) => GameWidget(game: GameInGameExample()),
 | 
						|
      codeLink: baseLink('components/game_in_game_example.dart'),
 | 
						|
      info: GameInGameExample.description,
 | 
						|
    );
 | 
						|
}
 |