20 lines
507 B
TypeScript
20 lines
507 B
TypeScript
import { Suspense } from "react";
|
|
import { Canvas } from "@react-three/fiber";
|
|
import { DebugPerf } from "@/components/debug/DebugPerf";
|
|
import { GameUI } from "@/components/ui/GameUI";
|
|
import { World } from "@/world/World";
|
|
|
|
export function HomePage(): React.JSX.Element {
|
|
return (
|
|
<>
|
|
<Canvas camera={{ position: [85, 60, 85], fov: 42 }} shadows>
|
|
<Suspense fallback={null}>
|
|
<World />
|
|
<DebugPerf />
|
|
</Suspense>
|
|
</Canvas>
|
|
<GameUI />
|
|
</>
|
|
);
|
|
}
|