mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 13:08:09 +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
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Dart
		
	
	
	
	
	
import 'package:dashbook/dashbook.dart';
 | 
						|
import 'package:flutter/material.dart';
 | 
						|
 | 
						|
import 'stories/animations/animations.dart';
 | 
						|
import 'stories/camera_and_viewport/camera_and_viewport.dart';
 | 
						|
import 'stories/collision_detection/collision_detection.dart';
 | 
						|
import 'stories/components/components.dart';
 | 
						|
import 'stories/effects/effects.dart';
 | 
						|
import 'stories/input/input.dart';
 | 
						|
import 'stories/parallax/parallax.dart';
 | 
						|
import 'stories/rendering/rendering.dart';
 | 
						|
import 'stories/sprites/sprites.dart';
 | 
						|
import 'stories/system/system.dart';
 | 
						|
import 'stories/utils/utils.dart';
 | 
						|
import 'stories/widgets/widgets.dart';
 | 
						|
 | 
						|
void main() async {
 | 
						|
  final dashbook = Dashbook(
 | 
						|
    title: 'Flame Examples',
 | 
						|
    theme: ThemeData.dark(),
 | 
						|
  );
 | 
						|
 | 
						|
  addAnimationStories(dashbook);
 | 
						|
  addCameraAndViewportStories(dashbook);
 | 
						|
  addCollisionDetectionStories(dashbook);
 | 
						|
  addComponentsStories(dashbook);
 | 
						|
  addEffectsStories(dashbook);
 | 
						|
  addInputStories(dashbook);
 | 
						|
  addParallaxStories(dashbook);
 | 
						|
  addRenderingStories(dashbook);
 | 
						|
  addSpritesStories(dashbook);
 | 
						|
  addSystemStories(dashbook);
 | 
						|
  addUtilsStories(dashbook);
 | 
						|
  addWidgetsStories(dashbook);
 | 
						|
 | 
						|
  runApp(dashbook);
 | 
						|
}
 |