Skip to content

fix: 修复非欧几何球面生命游戏无法运行#184

Merged
miuchan merged 1 commit into
masterfrom
codex/bug
Feb 24, 2026
Merged

fix: 修复非欧几何球面生命游戏无法运行#184
miuchan merged 1 commit into
masterfrom
codex/bug

Conversation

@miuchan
Copy link
Copy Markdown
Owner

@miuchan miuchan commented Feb 24, 2026

Motivation

  • 修复在静态页面中加载 OrbitControls 时浏览器无法解析裸模块 three 导致球面生命游戏脚本中断的问题(浏览器报 Failed to resolve module specifier "three")。

Description

  • public/demo/game-of-life/non-euclidean/sphere-life.js 中 Three.js 与 OrbitControls 的导入从 jsDelivr 更改为 https://esm.sh/three@0.159.0 与对应的 examples/jsm/controls/OrbitControls.js 路径以消除裸模块解析错误。

Testing

  • 在本地启动静态服务器 python3 -m http.server 4173 并用 Playwright 脚本打开 http://127.0.0.1:4173/public/demo/game-of-life/non-euclidean/index.html,修复前可复现模块解析错误,修复后页面正常运行并在控制台输出邻居统计日志,测试通过并已保存页面截图。

Codex Task

@miuchan miuchan merged commit ed73021 into master Feb 24, 2026
1 check passed
@miuchan miuchan deleted the codex/bug branch February 24, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant