import { Sparkles } from "@react-three/drei";
import { RigidBody } from "@react-three/rapier";
import type { DungeonDefinition } from "../game/dungeonTypes";
import {
DUNGEON_PHYSICAL_COLLISION_GROUPS,
DUNGEON_WALL_COLLISION_GROUPS,
} from "./dungeonLineOfSight";
interface SlabProps {
position: [number, number, number];
size: [number, number, number];
rotationY?: number;
color?: string;
blocksLineOfSight?: boolean;
}
function CaveSlab({
position,
size,
rotationY = 0,
color = "#25352b",
blocksLineOfSight = false,
}: SlabProps) {
return (
);
}
const stonePositions: ReadonlyArray = [
[-3.5, 0.7, -1, 0.8], [3.4, 0.9, 2, 1], [-3.7, 1.1, 7, 1.15], [3.6, 0.65, 11, 0.75],
[-3.6, 0.8, 16, 0.9], [3.5, 1.2, 20, 1.2], [-7.2, 0.85, 27, 1], [7.5, 1.15, 25, 1.2],
[-8.1, 0.7, 34, 0.85], [8.2, 0.95, 35, 1.05], [-5.5, 0.72, 42, 0.85], [11.7, 1.1, 43, 1.2],
];
function Stone({ position }: { position: readonly [number, number, number, number] }) {
return (
);
}
export function PrototypeDungeon({ definition }: { readonly definition: DungeonDefinition }) {
const entrance = definition.entrance;
return (
{stonePositions.map((position, index) => )}
);
}