mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
Fix
This commit is contained in:
@@ -427,7 +427,7 @@ module.exports = class CarRaceCommand extends Command {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const vs = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'vs.png'));
|
const vs = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'vs.png'));
|
||||||
ctx.drawImage(vs, (bg.width / 2) - (vs.width / 2), 80, 75, 75);
|
ctx.drawImage(vs, (bg.width / 2) - (75 / 2), 80, 75, 75);
|
||||||
ctx.fillStyle = 'black';
|
ctx.fillStyle = 'black';
|
||||||
ctx.fillRect(105, 45, 135, 135);
|
ctx.fillRect(105, 45, 135, 135);
|
||||||
ctx.drawImage(userData.avatar, 110, 50, 125, 125);
|
ctx.drawImage(userData.avatar, 110, 50, 125, 125);
|
||||||
|
|||||||
Reference in New Issue
Block a user