mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	Unify examples structure (#1118)
* 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
This commit is contained in:
		| @ -2,33 +2,35 @@ import 'package:dashbook/dashbook.dart'; | ||||
| import 'package:flame/game.dart'; | ||||
|  | ||||
| import '../../commons/commons.dart'; | ||||
| import 'composability.dart'; | ||||
| import 'debug.dart'; | ||||
| import 'game_in_game.dart'; | ||||
| import 'priority.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: Composability()), | ||||
|       codeLink: baseLink('components/composability.dart'), | ||||
|       (_) => GameWidget(game: ComposabilityExample()), | ||||
|       codeLink: baseLink('components/composability_example.dart'), | ||||
|       info: ComposabilityExample.description, | ||||
|     ) | ||||
|     ..add( | ||||
|       'Priority', | ||||
|       (_) => GameWidget(game: Priority()), | ||||
|       codeLink: baseLink('components/priority.dart'), | ||||
|       info: priorityInfo, | ||||
|       (_) => GameWidget(game: PriorityExample()), | ||||
|       codeLink: baseLink('components/priority_example.dart'), | ||||
|       info: PriorityExample.description, | ||||
|     ) | ||||
|     ..add( | ||||
|       'Debug', | ||||
|       (_) => GameWidget(game: DebugGame()), | ||||
|       codeLink: baseLink('components/debug.dart'), | ||||
|       (_) => GameWidget(game: DebugExample()), | ||||
|       codeLink: baseLink('components/debug_example.dart'), | ||||
|       info: DebugExample.description, | ||||
|     ) | ||||
|     ..add( | ||||
|       'Game-in-game', | ||||
|       (_) => GameWidget(game: GameInGame()), | ||||
|       codeLink: baseLink('components/game_in_game.dart'), | ||||
|       info: gameInGameInfo, | ||||
|       (_) => GameWidget(game: GameInGameExample()), | ||||
|       codeLink: baseLink('components/game_in_game_example.dart'), | ||||
|       info: GameInGameExample.description, | ||||
|     ); | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo