Files
ComfyUI_frontend/apps/architecture-adventure/src/main.ts
Alexander Brown 0a7bd170a8 feat(adventure): add renderer orchestrator and bootstrap game
Wires all UI modules together in renderer.ts with mountApp/render,
adds keyboard shortcuts (M, Escape, 1-9, A-C), and replaces the
placeholder main.ts with full bootstrap (load save, mount, subscribe,
enter room).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 18:34:26 -07:00

27 lines
664 B
TypeScript

import './style/theme.css'
import './style/layout.css'
import './style/hud.css'
import './style/room.css'
import './style/challenge.css'
import './style/sidebar.css'
import './style/map.css'
import './style/animations.css'
import { isV1Save, loadSave } from '@/state/gameState'
import { enterRoom, initGameState, subscribe } from '@/engine/stateMachine'
import { mountApp, render } from '@/ui/renderer'
function main(): void {
if (isV1Save()) {
console.warn('Codebase Caverns v1 save detected. Starting fresh for v2.')
}
const save = loadSave()
mountApp()
initGameState(save)
subscribe(render)
enterRoom(save.currentRun.currentRoom)
}
main()