mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	feat!: Add CameraComponent to FlameGame (#2740)
This PR adds the `CameraComponent` and a `World` by default to the FlameGame.
This commit is contained in:
		
							
								
								
									
										13
									
								
								examples/lib/stories/structure/structure.dart
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								examples/lib/stories/structure/structure.dart
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| import 'package:dashbook/dashbook.dart'; | ||||
| import 'package:examples/commons/commons.dart'; | ||||
| import 'package:examples/stories/structure/levels.dart'; | ||||
| import 'package:flame/game.dart'; | ||||
|  | ||||
| void addStructureStories(Dashbook dashbook) { | ||||
|   dashbook.storiesOf('Structure').add( | ||||
|         'Levels', | ||||
|         (_) => GameWidget(game: LevelsExample()), | ||||
|         info: LevelsExample.description, | ||||
|         codeLink: baseLink('structure/levels.dart'), | ||||
|       ); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo