This commit is contained in:
Dragon Fire
2024-03-24 16:50:30 -04:00
parent 6dc7938a10
commit bac1e9af06
+1 -1
View File
@@ -53,7 +53,7 @@ module.exports = class FireCommand extends Command {
encoder.setDelay(100);
encoder.setQuality(200);
for (let i = 0; i < frameCount; i++) {
const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'fire', `frame-${i}.png`));
const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'fire', `frame-${i}.gif`));
const ratio = frame.width / frame.height;
const height = Math.round(avatar.width / ratio);
drawImageWithTint(ctx, avatar, '#fc671e', 0, 0, avatar.width, avatar.height);