Skip to content

Apple Vision Pro 3D battle implementation updates#44

Merged
chiimagnus merged 13 commits intomainfrom
xy
Feb 6, 2026
Merged

Apple Vision Pro 3D battle implementation updates#44
chiimagnus merged 13 commits intomainfrom
xy

Conversation

@chiimagnus
Copy link
Copy Markdown
Owner

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.

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 并累加金币),并附验证步骤
@chiimagnus chiimagnus merged commit 15edd47 into main Feb 6, 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