Spaces:
Running
Running
| # src/ | |
| Main application source code. | |
| ## Structure | |
| - `main.ts` - Svelte app mount point | |
| - `App.svelte` - Game development environment with view modes | |
| - `app.css` - Global styles | |
| ## Interface | |
| - **Header**: View toggle (Code/Preview), status indicator, restart button | |
| - **Code mode**: Split view with editor (40%) and game/console (60%) | |
| - **Preview mode**: Full-screen game view | |
| - **Animations**: GSAP transitions (0.2s) for smooth mode switching | |
| - **Auto-reload**: 800ms debounce on code changes | |
| - **Console**: Auto-scroll, message animations, hidden in preview mode | |