This commit is contained in:
Dragon Fire
2020-12-25 19:44:38 -05:00
parent 5608f252ab
commit cb052033c2
+1 -1
View File
@@ -43,7 +43,7 @@ module.exports = class PetCommand extends Command {
encoder.setDelay(200);
encoder.setQuality(200);
for (let i = 0; i < frameCount; i++) {
const frameID = `frame-${i.toString().padStart(2, '0')}.png`;
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, width, height);