mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 17:06:50 +08:00 
			
		
		
		
	chore: Remove deprecations for v1.9.0 (#2749)
Removes everything that was marked as deprecated and that should be removed for v1.9.0.
This commit is contained in:
		| @ -37,7 +37,8 @@ class DebugExample extends FlameGame { | ||||
|   } | ||||
| } | ||||
|  | ||||
| class LogoComponent extends SpriteComponent with HasGameRef<DebugExample> { | ||||
| class LogoComponent extends SpriteComponent | ||||
|     with HasGameReference<DebugExample> { | ||||
|   static const int speed = 150; | ||||
|  | ||||
|   int xDirection = 1; | ||||
| @ -52,14 +53,14 @@ class LogoComponent extends SpriteComponent with HasGameRef<DebugExample> { | ||||
|     final rect = toRect(); | ||||
|  | ||||
|     if ((x <= 0 && xDirection == -1) || | ||||
|         (rect.right >= gameRef.size.x && xDirection == 1)) { | ||||
|         (rect.right >= game.size.x && xDirection == 1)) { | ||||
|       xDirection = xDirection * -1; | ||||
|     } | ||||
|  | ||||
|     y += yDirection * speed * dt; | ||||
|  | ||||
|     if ((y <= 0 && yDirection == -1) || | ||||
|         (rect.bottom >= gameRef.size.y && yDirection == 1)) { | ||||
|         (rect.bottom >= game.size.y && yDirection == 1)) { | ||||
|       yDirection = yDirection * -1; | ||||
|     } | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo