This commit is contained in:
Dragon Fire
2021-02-10 21:33:25 -05:00
parent 14dc24c424
commit 66adae0db8
+2 -2
View File
@@ -82,11 +82,11 @@ module.exports = class EjectCommand extends Command {
const x = (320 / 10) * i;
const y = (frame.height / 2) - 25;
const angle = rotation * (Math.PI / 180);
ctx.rotate(angle);
ctx.rotate(-angle);
const x2 = x + (x * Math.cos(angle));
const y2 = y + (x * Math.sin(angle));
ctx.drawImage(avatar, x2, y2, 50, 50);
ctx.rotate(-rotation * (Math.PI / 180));
ctx.rotate(angle);
}
if (i > 10) {
if (i <= 20) {