mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 08:56:01 +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.6 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:dashbook/dashbook.dart';
 | |
| import 'package:flame/game.dart';
 | |
| 
 | |
| import '../../commons/commons.dart';
 | |
| import 'base64_sprite_example.dart';
 | |
| import 'basic_sprite_example.dart';
 | |
| import 'sprite_group_example.dart';
 | |
| import 'spritebatch_example.dart';
 | |
| import 'spritebatch_load_example.dart';
 | |
| import 'spritesheet_example.dart';
 | |
| 
 | |
| void addSpritesStories(Dashbook dashbook) {
 | |
|   dashbook.storiesOf('Sprites')
 | |
|     ..add(
 | |
|       'Basic Sprite',
 | |
|       (_) => GameWidget(game: BasicSpriteExample()),
 | |
|       codeLink: baseLink('sprites/basic_animation_example.dart'),
 | |
|       info: BasicSpriteExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Base64 Sprite',
 | |
|       (_) => GameWidget(game: Base64SpriteExample()),
 | |
|       codeLink: baseLink('sprites/base64_sprite_example.dart'),
 | |
|       info: Base64SpriteExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Spritesheet',
 | |
|       (_) => GameWidget(game: SpritesheetExample()),
 | |
|       codeLink: baseLink('sprites/spritesheet_example.dart'),
 | |
|       info: SpritesheetExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Spritebatch',
 | |
|       (_) => GameWidget(game: SpritebatchExample()),
 | |
|       codeLink: baseLink('sprites/spritebatch_example.dart'),
 | |
|       info: SpritebatchExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'Spritebatch Auto Load',
 | |
|       (_) => GameWidget(game: SpritebatchLoadExample()),
 | |
|       codeLink: baseLink('sprites/spritebatch_load_example.dart'),
 | |
|       info: SpritebatchLoadExample.description,
 | |
|     )
 | |
|     ..add(
 | |
|       'SpriteGroup',
 | |
|       (_) => GameWidget(game: SpriteGroupExample()),
 | |
|       codeLink: baseLink('sprites/sprite_group_example.dart'),
 | |
|       info: SpriteGroupExample.description,
 | |
|     );
 | |
| }
 |