File size: 570 Bytes
794cf6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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