mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 17:06:50 +08:00 
			
		
		
		
	 8b132d7c0b
			
		
	
	8b132d7c0b
	
	
	
		
			
			* 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
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:dashbook/dashbook.dart';
 | |
| import 'package:flame/game.dart';
 | |
| 
 | |
| import '../../commons/commons.dart';
 | |
| import 'flip_sprite_example.dart';
 | |
| import 'isometric_tile_map_example.dart';
 | |
| import 'layers_example.dart';
 | |
| import 'nine_tile_box_example.dart';
 | |
| import 'particles_example.dart';
 | |
| import 'text_example.dart';
 | |
| 
 | |
| void addRenderingStories(Dashbook dashbook) {
 | |
|   dashbook.storiesOf('Rendering')
 | |
|     ..add(
 | |
|       'Text',
 | |
|       (_) => GameWidget(game: TextExample()),
 | |
|       codeLink: baseLink('rendering/text_example.dart'),
 | |
|       info: TextExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Isometric Tile Map',
 | |
|       (_) => GameWidget(game: IsometricTileMapExample()),
 | |
|       codeLink: baseLink('tile_maps/isometric_tile_map_example.dart'),
 | |
|       info: IsometricTileMapExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Nine Tile Box',
 | |
|       (_) => GameWidget(game: NineTileBoxExample()),
 | |
|       codeLink: baseLink('utils/nine_tile_box_example.dart'),
 | |
|       info: NineTileBoxExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Flip Sprite',
 | |
|       (_) => GameWidget(game: FlipSpriteExample()),
 | |
|       codeLink: baseLink('rendering/flip_sprite_example.dart'),
 | |
|       info: FlipSpriteExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Layers',
 | |
|       (_) => GameWidget(game: LayerExample()),
 | |
|       codeLink: baseLink('rendering/layers_example.dart'),
 | |
|       info: LayerExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Particles',
 | |
|       (_) => GameWidget(game: ParticlesExample()),
 | |
|       codeLink: baseLink('utils/particles_example.dart'),
 | |
|       info: ParticlesExample.description,
 | |
|     );
 | |
| }
 |