mirror of
https://github.com/motajs/template.git
synced 2026-09-20 14:30:17 +08:00
H5 魔塔样板
- ReplayUseItemCommand / ReplayEquipCommand / ReplayUnequipCommand now extend BaseReplayCommand with fixed numeric params and per-false-position logger error codes (2006-2010); string item/slot params removed, autoUnload is a required bool. - remove isNumber/isItem/isBoolean/isSlot/resolveSlot helpers; all logic now lives in the command classes. - drop createReplayCommandItems/registerReplayCommandItems; CoreState owns a private registerReplayCommand() registering the eight stable codes directly. - prune unused replay boundary types from replay/types.ts. - fix ReplaySandbox: a replay ending on a run of moves now finalizes the trailing run through notExecuted (previously the last move never started). - rewrite commands.test.ts for the base-class design and direct registration. Verified: data type gate 0 in-scope; vitest 19 files / 112 tests pass; prettier and eslint clean on touched files. |
||
|---|---|---|
| .github/workflows | ||
| .gsd | ||
| .planning | ||
| .vscode | ||
| docs | ||
| packages | ||
| packages-user | ||
| public | ||
| script | ||
| src | ||
| .gitignore | ||
| .madgerc | ||
| .prettierignore | ||
| .prettierrc | ||
| AGENTS.md | ||
| dev.md | ||
| eslint.config.js | ||
| index.html | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| task.md | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
HTML 魔塔样板
基于 HTML5 制作的魔塔样板,支持全平台游戏!
即使完全不会编程的用户,按照模板和说明文档也能很快做出一个魔塔游戏!
更新记录
2.B 之前的更新记录请参考 2.10.3 样板。
2.B
- 完全重构渲染系统,将大部分渲染相关内容移植入新渲染系统,但仍有部分内容尚未移植完毕
- 提供新的启动服务,可以享受到完整的新技术栈支持
- 新功能:可以自定义自动元件的连接
- 新功能:新增
opus音频格式的支持,oggopus现在支持 iOS 设备 - 新功能:新增
webp图片格式的支持 - 调整:由于重构的不完全,目前仍有部分功能暂时无法提供支持,将会在未来的版本中逐步修复(2.B.1, 2.B.2 等)