Skip to content

Enhance battle and room systems with new features#46

Merged
chiimagnus merged 29 commits intomainfrom
xy
Feb 10, 2026
Merged

Enhance battle and room systems with new features#46
chiimagnus merged 29 commits intomainfrom
xy

Conversation

@chiimagnus
Copy link
Copy Markdown
Owner

Implement a series of enhancements to the battle system, including new animation types, improved event handling, and a refined shop interface. Introduce new room panels for events, rest, and shops, along with state management for better gameplay experience. Update documentation to reflect these changes and ensure clarity on business rules and acceptance criteria.

- Added new animation kinds: block, turnStart, turnEnd, and energyPulse to BattleAnimationQueue.
- Updated AnimationJob structure to include additional properties for cardId, playedCardContext, amount, blocked, entityId, turn, and energy.
- Enhanced BattleAnimationSystem to handle new animation kinds and improved rendering logic for hand and enemy states.
- Introduced FloatingTextFactory for displaying floating text effects for damage, block, and neutral events.
- Updated BattleHUDPanel to display turn banners and energy information with animations.
- Modified RunSession to track played card contexts and manage event sequences effectively.
- Refactored BattlePresentationEvent to include playedCardContext for better event handling.
…ate management

- Implemented EventRoomPanel to handle event interactions and display options.
- Created RestRoomPanel for resting and upgrading cards, including UI for player health and actions.
- Developed ShopRoomPanel for purchasing cards, relics, and consumables, with inventory management.
- Introduced EventRoomState and ShopRoomState to manage the state of event and shop rooms.
- Enhanced RunSession to support new room types and their functionalities, including event handling and shop interactions.
- 修改 BattleEvent 结构,新增 targetEntityId 字段
- 更新 BattleEngine,emit 事件时传递目标实体 ID
- 调整 BattleAnimationQueue 和 BattleAnimationSystem,确保动画反馈基于目标实体 ID
- 更新相关测试用例,确保新字段的正确性
@chiimagnus chiimagnus merged commit 6f54615 into main Feb 10, 2026
3 checks passed
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.

1 participant