Files
Arcanum_TD/src/App.tsx
T
Mareli 7a62067af1 Initial commit: Arcanum TD — medieval fantasy tower defense
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>
2026-04-19 12:31:49 +03:00

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