Spaces:
Running
Running
src/
Main application source code.
Structure
main.ts
- Svelte app mount pointApp.svelte
- Game development environment with view modesapp.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