mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
Luan linter
This commit is contained in:
@ -30,7 +30,12 @@ class SpriteSheet {
|
||||
}
|
||||
|
||||
Sprite _mapImagePath(
|
||||
String imageName, int textureWidth, int textureHeight, int x, int y) {
|
||||
String imageName,
|
||||
int textureWidth,
|
||||
int textureHeight,
|
||||
int x,
|
||||
int y,
|
||||
) {
|
||||
return Sprite(
|
||||
imageName,
|
||||
x: (x * textureWidth).toDouble(),
|
||||
@ -57,7 +62,12 @@ class SpriteSheet {
|
||||
}
|
||||
|
||||
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(
|
||||
image,
|
||||
x: (x * textureWidth).toDouble(),
|
||||
|
||||
Reference in New Issue
Block a user