Skip to content

fix: Chilling Spit improved hit feel (#2234)#2905

Open
sungdark wants to merge 4 commits intoFreezingMoon:masterfrom
sungdark:fix/chilling-spit-hit-feel-2234
Open

fix: Chilling Spit improved hit feel (#2234)#2905
sungdark wants to merge 4 commits intoFreezingMoon:masterfrom
sungdark:fix/chilling-spit-hit-feel-2234

Conversation

@sungdark
Copy link
Copy Markdown

Summary

Fixes #2234: Snow Bunny's Chilling Spit should also trigger hit sound when projectile reaches the target and only then shake screen.

Changes

In src/abilities/Snow-Bunny.ts (4th ability: Freezing Spit):

  1. Removed the premature G.Phaser.camera.shake() call from the beginning of activate()
  2. Added hit sound (sounds/swing2) and screen shake inside the tween.onComplete callback, so they trigger when the projectile actually reaches the target

This makes the ability feel more impactful — the screen shake and hit sound now coincide with the damage landing, rather than happening before the projectile even travels.

Testing

  • Build succeeds with no new errors
  • The change is isolated to the Freezing Spit ability (ability index 3)
  • No other abilities are affected

收款地址: eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9

bounty-scout and others added 3 commits March 26, 2026 23:21
Implement landscape orientation lock using the Screen Orientation API
when entering fullscreen mode on mobile devices. This addresses the
issue where users had to manually rotate their device, providing a
better mobile gaming experience.

The orientation is automatically locked to landscape when entering
fullscreen and unlocked when exiting.
 FreezingMoon#2174)

- Display cancel icon temporarily when clicking an active ability that is already used or unusable (require() returns false)
- Previously the cancel icon was only shown for passive ability cycling (Joywin case)
…n on projectile impact

- Move screen shake from ability activation to projectile onComplete callback
- Add hit sound (sounds/swing2) when projectile reaches target
- Fixes FreezingMoon#2234: Snow Bunny's Chilling Spit now triggers hit sound and
  screen shake only when projectile reaches the target, not before
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@sungdark is attempting to deploy a commit to the FreezingMoon Team on Vercel.

A member of the Team first needs to authorize it.

- Add undoCreatureState and undoUsedThisRound to Game class
- Add saveUndoState() method to save creature state (position, remainingMove, health, energy)
- Add undoMove() method to restore creature to saved state
- Modify btnDelay click handler to trigger undo when undo state is available
- Add Ctrl+Z hotkey for undo
- Hook into move and ability use to save undo state on first action
- Reset undo state when new creature activates
- Undo is usable only once per round
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chilling Spit improved hit feel [bounty: 4 XTR]

1 participant