mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 17:06:50 +08:00 
			
		
		
		
	feat: clampLength for Vector2 extension (#2190)
				
					
				
			With this method you can clamp the length of a vector, instead fitting it in a box like clamp and clampScalar does.
This commit is contained in:
		| @ -32,6 +32,7 @@ class IsometricTileMapExample extends FlameGame with MouseMovementDetector { | ||||
|  | ||||
|   @override | ||||
|   Future<void> onLoad() async { | ||||
|     debugMode = true; | ||||
|     final tilesetImage = await images.load('tile_maps/tiles$suffix.png'); | ||||
|     final tileset = SpriteSheet( | ||||
|       image: tilesetImage, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo