本 Demo 从 theme.json / events.json 读取界面与内容。 如果你直接用 file:// 打开且浏览器拦截了本地请求,请确认 js/data.js 存在(它保存了同内容的内联副本)。
theme.json
events.json
file://
js/data.js
更稳妥的做法:在 game/ 目录执行 python3 -m http.server 8080 然后访问 http://localhost:8080。
game/
python3 -m http.server 8080
http://localhost:8080