Spaces:
Running
Running
cutechicken
commited on
Commit
•
705e9f5
1
Parent(s):
da9c52b
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -540,7 +540,7 @@ effects.forEach(effect => {
|
|
540 |
ctx.translate(effect.x, effect.y);
|
541 |
if(effect.type === 'fire') ctx.rotate(effect.angle);
|
542 |
// bang.png는 1.5배 크게
|
543 |
-
const size = effect.type === 'death' ? 75 :
|
544 |
ctx.drawImage(effect.img, -size/2, -size/2, size, size);
|
545 |
ctx.restore();
|
546 |
});
|
|
|
540 |
ctx.translate(effect.x, effect.y);
|
541 |
if(effect.type === 'fire') ctx.rotate(effect.angle);
|
542 |
// bang.png는 1.5배 크게
|
543 |
+
const size = effect.type === 'death' ? 75 : 42; // death는 75px (1.5배), fire는 42px
|
544 |
ctx.drawImage(effect.img, -size/2, -size/2, size, size);
|
545 |
ctx.restore();
|
546 |
});
|