mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	Remove old effects system (#1157)
* Remove old effects system * Add changelog entry
This commit is contained in:
		| @ -63,19 +63,23 @@ class SimpleShapesExample extends FlameGame with HasTappables { | ||||
|     final component = randomShape(tapPosition); | ||||
|     add(component); | ||||
|     component.add( | ||||
|       MoveEffect( | ||||
|         path: [size / 2], | ||||
|         speed: 30, | ||||
|         isAlternating: true, | ||||
|         isInfinite: true, | ||||
|       MoveEffect.to( | ||||
|         size / 2, | ||||
|         StandardEffectController( | ||||
|           duration: 5, | ||||
|           reverseDuration: 5, | ||||
|           infinite: true, | ||||
|         ), | ||||
|       ), | ||||
|     ); | ||||
|     component.add( | ||||
|       RotateEffect( | ||||
|         angle: 3, | ||||
|         speed: 0.4, | ||||
|         isAlternating: true, | ||||
|         isInfinite: true, | ||||
|       RotateEffect.to( | ||||
|         3, | ||||
|         StandardEffectController( | ||||
|           duration: 1, | ||||
|           reverseDuration: 1, | ||||
|           infinite: true, | ||||
|         ), | ||||
|       ), | ||||
|     ); | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo