use Prettier to fix style issues

This commit is contained in:
Hanusiak Piotr 2021-11-29 20:39:09 +01:00
parent 913a07350d
commit 2ea54fd243
2 changed files with 14 additions and 15 deletions

View file

@ -64,7 +64,7 @@ export abstract class Character extends Container {
this.addTextures(textures, frame);
this.invisible = false;
this.playAnimation(direction, moving);
this.emit('textures-loaded');
this.emit("textures-loaded");
})
.catch(() => {
return lazyLoadPlayerCharacterTextures(scene.load, ["color_22", "eyes_23"]).then((textures) => {
@ -125,16 +125,18 @@ export abstract class Character extends Container {
}
return new Promise<HTMLImageElement>((resolve, reject) => {
try {
rt.snapshot((url) => {
resolve(url as HTMLImageElement);
rt.destroy();
},
'image/png',
1);
rt.snapshot(
(url) => {
resolve(url as HTMLImageElement);
rt.destroy();
},
"image/png",
1
);
} catch (error) {
reject(error);
}
})
});
}
public addCompanion(name: string, texturePromise?: Promise<string>): void {