npmrun
5a43d58f86
fix(kernel): harden runtime event compatibility and dispatch safety
Restore event bus variadic emit/listener semantics for backward compatibility, and make RuntimeEvents resilient to listener failures including once cleanup on throws.
Split frame render signaling from generic render calls so game:rendered is emitted only from the frame loop, with a dedicated game:frame-rendered event.
Made-with: Cursor
2 weeks ago
npmrun
5977d399f4
refactor(kernel): introduce app runtime and event bus plugin system
Add AppRuntime as the central runtime orchestrator and migrate init wiring to runtime-managed game/scene/event instances.
Introduce RuntimeEvents plus plugin hooks so scene-change and render lifecycle signals are extensible without breaking existing init exports.
Made-with: Cursor
2 weeks ago
npmrun
5c9ba882bb
fix(assets): dedupe concurrent loads and close session lifecycle
Made-with: Cursor
2 weeks ago
npmrun
d1a52e8816
feat(assets): add asset graph/session with owner tracking
Made-with: Cursor
2 weeks ago
npmrun
5e3c13ce1a
fix(scene): defer destructive teardown until transition succeeds
Made-with: Cursor
2 weeks ago
npmrun
46178e648b
chore(test): remove out-of-scope scene manager rollback spec file
Made-with: Cursor
2 weeks ago
npmrun
fcacb5b6ce
fix(scene): keep stage tree consistent on transition rollback
Made-with: Cursor
2 weeks ago
npmrun
0848c35c2e
feat(scene): add transition transaction with rollback flow
Made-with: Cursor
2 weeks ago
npmrun
775a0721c0
test: enforce scene state machine transitions
Made-with: Cursor
2 weeks ago
npmrun
b56fb38a4d
chore: remove out-of-scope lockfile from task1
Made-with: Cursor
2 weeks ago
npmrun
0978dc6db8
test: add vitest baseline and scene state machine skeleton
Made-with: Cursor
2 weeks ago
npmrun
58a9c675f7
chore: ignore local git worktrees directory
Made-with: Cursor
2 weeks ago
npmrun
b544469605
docs: add DX-first runtime and asset redesign spec
Made-with: Cursor
2 weeks ago
npmrun
3f47f09f60
refactor: update game orientation handling and viewport synchronization
- Changed default game orientation from Landscape to Portrait in main.ts.
- Enhanced Game class with new methods for viewport size management and physical layout detection.
- Improved layout scheduling on orientation change and resize events.
- Removed deprecated global page and adjusted scene initialization to use new layout configurations.
Made-with: Cursor
3 weeks ago
npmrun
b6050d57fb
feat(global): 常驻场景循环播放全局 BGM;Sound 支持 loop/volume
- 移除 init 与各场景对 my-sound 的误停,避免打断 BGM
- BGM 资源路径 public/bg.mp3(需自行放置文件)
Made-with: Cursor
3 weeks ago
npmrun
8030b00ab0
fix(vite): 仅生产环境 drop console,避免开发时误判场景未执行
- page_00_global: 用 logger 替代 console 便于与 Logger 级别配合
Made-with: Cursor
3 weeks ago
npmrun
1eab0bde16
feat(init): 开始游戏界面 — 全屏背景、标题、角色与主按钮
Made-with: Cursor
3 weeks ago
npmrun
8a72443aba
refactor: 删除 src/Game 旧栈,页面与构建对齐规格
- page_init / welcome2: BaseScene + assetManager、utils 音频与定位
- init: 仅类默认导出;启动时注册 my-sound
- SceneManager: 去掉 changeStage;修正 DynamicScene 构造
- enums: 移除 EP、EDirection
- vite: 改用 esbuild 压缩并 drop console/debugger
- main: 去掉 setTimeout,异步入口 try/catch
- 删除整个 src/Game 目录
Made-with: Cursor
3 weeks ago
npmrun
77590eeae0
refactor: 去除旧 Game 管线,统一 BaseScene 与 changeScene
- init: 仅注册默认导出的场景类;简化 glob 加载逻辑
- SceneManager: 移除 changeStage 别名,保留 changeScene
- page_init / welcome2 / 0global: 对齐新场景与 API 调用
Made-with: Cursor
3 weeks ago
npmrun
534a32aee3
docs: add legacy Game pipeline removal design spec
Made-with: Cursor
3 weeks ago
npmrun
9ea7495b63
fix: resolve all TypeScript compilation errors
3 weeks ago
npmrun
4545c81b39
chore: update .gitignore
3 weeks ago
npmrun
c042f70d5d
refactor: migrate example scene to new architecture
3 weeks ago
npmrun
72897d469b
refactor: update main.ts for new architecture
3 weeks ago
npmrun
b2f9260e6f
fix: Update Panel.ts to properly handle background color and alpha
1. Added private _backgroundColor and _alpha instance properties
2. Updated resize() method to preserve backgroundColor and alpha instead of hardcoding
3. Fixed setBackgroundColor() to properly redraw background with new color instead of using tint
4. Initialized properties in constructor with default values
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
3 weeks ago
npmrun
fec7da7ec4
feat: add Label and Panel components
3 weeks ago
npmrun
b88d7535fe
refactor: Button component with full typing
3 weeks ago
npmrun
86f7d97392
feat: add Storage and MathUtils utilities
3 weeks ago
npmrun
e2841f60cf
feat: add SoundManager utility
3 weeks ago
npmrun
8f47e54b56
feat: add Tween animation utility
3 weeks ago
npmrun
db0e8a8c19
feat: add Position utility for alignment
3 weeks ago
npmrun
208bb6d208
feat: update getAllScenes to return array instead of iterator
3 weeks ago
npmrun
4ff5157f40
feat: add app init with auto scene discovery
3 weeks ago
npmrun
0ba0bf4d44
fix: improve SceneManager type safety and code quality
3 weeks ago
npmrun
673c50ce8f
feat: add SceneManager with full lifecycle management
3 weeks ago
npmrun
8d6a3f2fa4
feat: add Scene types and BaseScene abstract class
3 weeks ago
npmrun
a0b54f4231
feat: add Game core class with orientation handling
3 weeks ago
npmrun
940b1d55af
fix: 修复 AssetManager 代码质量问题
3 weeks ago
npmrun
9a57fd6743
feat: add AssetManager core module with ref counting
3 weeks ago
npmrun
dd580661eb
feat: add EventBus core module
3 weeks ago
npmrun
57d5e6466e
feat: add Logger core module
3 weeks ago
npmrun
50d825ed25
feat: add global type definitions
3 weeks ago
npmrun
c0a75b4d14
fix: improve backward compatibility enum exports
3 weeks ago
npmrun
5f2c72faf6
feat: add enum definitions for SceneType and Orientation
3 weeks ago
npmrun
1f0a7280f3
add
2 years ago
npmrun
a2977d615d
add
2 years ago
npmrun
ca7a2ef217
feat: 增加很多功能
2 years ago
npmrun
3ea07e4173
add
2 years ago
npmrun
c6aeb0d195
add
3 years ago
npmrun
1a1e12ca04
fixed bug
4 years ago