chore: update combat engine formatting and battle scene animations
- Normalize whitespace and alignment in `src/combat/CombatEngine.js` (variable assignments and filter calls). - Extend projectile tween duration in `src/scenes/BattleScene.js` from 350ms to 2000ms for smoother visual effect. - Adjust sprite pulse animation scale range from 0.8–1.5 to 0.5–1.0 for a more subtle effect. - Update binary assets: new `smite2.mp3`, modified `fortify.mp3` and `smite-cast.mp3`, updated `attacks.png` and `attacks.psd`, removed duplicate `attacks (1).png`.
This commit is contained in:
parent
1c99dc233d
commit
b2981cd389
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 6.2 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.9 MiB After Width: | Height: | Size: 7.9 MiB |
Binary file not shown.
|
|
@ -3932,7 +3932,7 @@ export class BattleScene extends Phaser.Scene {
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: projectile,
|
targets: projectile,
|
||||||
x: targetObj.x, y: targetObj.y,
|
x: targetObj.x, y: targetObj.y,
|
||||||
duration: 350,
|
duration: 2000,
|
||||||
ease: 'Quad.In',
|
ease: 'Quad.In',
|
||||||
onComplete: () => {
|
onComplete: () => {
|
||||||
if (projectile.scene) projectile.destroy();
|
if (projectile.scene) projectile.destroy();
|
||||||
|
|
@ -4302,8 +4302,8 @@ export class BattleScene extends Phaser.Scene {
|
||||||
// Pulse: grow and shrink twice (yoyo × 2)
|
// Pulse: grow and shrink twice (yoyo × 2)
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
targets: sprite,
|
targets: sprite,
|
||||||
scaleX: { from: 0.8, to: 1.5 },
|
scaleX: { from: 0.5, to: 1 },
|
||||||
scaleY: { from: 0.8, to: 1.5 },
|
scaleY: { from: 0.5, to: 1 },
|
||||||
duration: 220,
|
duration: 220,
|
||||||
yoyo: true,
|
yoyo: true,
|
||||||
repeat: 1,
|
repeat: 1,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue