mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 13:08:09 +08:00 
			
		
		
		
	Luan linter
This commit is contained in:
		@ -30,7 +30,12 @@ class SpriteSheet {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Sprite _mapImagePath(
 | 
					  Sprite _mapImagePath(
 | 
				
			||||||
      String imageName, int textureWidth, int textureHeight, int x, int y) {
 | 
					    String imageName,
 | 
				
			||||||
 | 
					    int textureWidth,
 | 
				
			||||||
 | 
					    int textureHeight,
 | 
				
			||||||
 | 
					    int x,
 | 
				
			||||||
 | 
					    int y,
 | 
				
			||||||
 | 
					  ) {
 | 
				
			||||||
    return Sprite(
 | 
					    return Sprite(
 | 
				
			||||||
      imageName,
 | 
					      imageName,
 | 
				
			||||||
      x: (x * textureWidth).toDouble(),
 | 
					      x: (x * textureWidth).toDouble(),
 | 
				
			||||||
@ -57,7 +62,12 @@ class SpriteSheet {
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Sprite _mapImage(
 | 
					  Sprite _mapImage(
 | 
				
			||||||
      Image image, int textureWidth, int textureHeight, int x, int y) {
 | 
					    Image image,
 | 
				
			||||||
 | 
					    int textureWidth,
 | 
				
			||||||
 | 
					    int textureHeight,
 | 
				
			||||||
 | 
					    int x,
 | 
				
			||||||
 | 
					    int y,
 | 
				
			||||||
 | 
					  ) {
 | 
				
			||||||
    return Sprite.fromImage(
 | 
					    return Sprite.fromImage(
 | 
				
			||||||
      image,
 | 
					      image,
 | 
				
			||||||
      x: (x * textureWidth).toDouble(),
 | 
					      x: (x * textureWidth).toDouble(),
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user