7a62067af1
Vite + React + PixiJS + TypeScript. Features: - 4-level campaign (King's Road → Obsidian Keep) - Isometric 2.5D grid with ley-line mechanics - ECS architecture (entities, components, systems) - 4 tower types, hero spellcaster, 10+ enemy types - Lich King boss with 3-phase AI - Meta-progression: essence, rune unlocks - Full UI redesign with fantasy design system Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
813 B
TypeScript
25 lines
813 B
TypeScript
import { useGameStore } from '@/state/gameStore'
|
|
import { MainMenu } from '@/ui/screens/MainMenu'
|
|
import { CampaignMap } from '@/ui/screens/CampaignMap'
|
|
import { GameScreen } from '@/ui/screens/GameScreen'
|
|
import { TomeOfRunes } from '@/ui/screens/TomeOfRunes'
|
|
import { Settings } from '@/ui/screens/Settings'
|
|
import { GameOver } from '@/ui/screens/GameOver'
|
|
|
|
export function App() {
|
|
const screen = useGameStore((s) => s.screen)
|
|
|
|
return (
|
|
<div className="w-full h-full relative overflow-hidden">
|
|
{screen === 'menu' && <MainMenu />}
|
|
{screen === 'campaign' && <CampaignMap />}
|
|
{screen === 'game' && <GameScreen />}
|
|
{screen === 'tome' && <TomeOfRunes />}
|
|
{screen === 'settings' && <Settings />}
|
|
{screen === 'gameover' && <GameOver />}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default App
|