Apple Vision Pro 3D battle implementation updates#44
Merged
chiimagnus merged 13 commits intomainfrom Feb 6, 2026
Merged
Conversation
Task 1、2 是为了让后面的“3D 战斗交互”能稳定、可复现、可维护地跑起来,不然你会很快卡在“为什么这次和上次不一样/为什么进不了战斗/为什么结算不推进”等问题上。
这是因为 ControlPanelView 是 WindowGroup 的 volumetric window,进入 Immersive 后它默认不会自动消失。 现在改成:打开 Immersive 成功后自动 dismissWindow(controlPanel);退出 Immersive 会自动 openWindow(controlPanel)。 改动在:SaluAVPApp.swift (line 1)、ImmersiveSpaceToggleButton.swift (line 1)、AppModel.swift (line 1)
- P2.3(Battle HUD):标记为完成,HUD 缩小、日志默认收起、移除 `Panel`,保留 `Exit` - P2.4(3D 战斗层):标记为完成,补充实现细节(使用 `Sphere` 占位、修正手牌扇形朝向与布局) - P2.5(房间接入战斗):标记为完成,补充 `Close` 行为说明(退出 Immersive 并打开控制面板) - 新增 P2.6:战斗胜利发放最小金币奖励(在 RunSession 中生成 RewardContext 并累加金币),并附验证步骤
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enhance the battle system by adding state management, HUD panels, and reward logic. Update documentation to reflect the latest implementation details and ensure a stable user experience in immersive environments. Fix issues related to window management during immersive transitions.