Also squish pet on x axis

This commit is contained in:
Dragon Fire
2021-02-21 12:47:41 -05:00
parent 16f139fab0
commit 892d328143
+1 -1
View File
@@ -48,7 +48,7 @@ module.exports = class PetCommand extends Command {
const frameID = `frame_${i.toString().padStart(2, '0')}.png`;
const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'pet', frameID));
const { x, y, width, height } = centerImagePart(data, 75, 75, 27, 38);
ctx.drawImage(data, x, y + squish, width, height - squish);
ctx.drawImage(data, x - squish, y + squish, width + squish, height - squish);
ctx.drawImage(frame, 0, 0);
encoder.addFrame(ctx);
ctx.clearRect(0, 0, canvas.width, canvas.height);