mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 04:47:13 +08:00 
			
		
		
		
	Utilize Vector2 for sprite and set default position
This commit is contained in:
		@ -36,8 +36,7 @@ class SpriteComponent extends PositionComponent {
 | 
			
		||||
    super.render(canvas);
 | 
			
		||||
    sprite.render(
 | 
			
		||||
      canvas,
 | 
			
		||||
      width: width,
 | 
			
		||||
      height: height,
 | 
			
		||||
      size: size,
 | 
			
		||||
      overridePaint: overridePaint,
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user