Add support for pointLight and spotLight entities in App.tsx

This commit is contained in:
2026-03-31 20:13:54 +02:00
parent 246926c64f
commit 95783d0ddc

View File

@@ -1210,6 +1210,16 @@ export function App({ store, initialStatusMessage }: AppProps) {
let nextEntity: EntityInstance;
switch (kind) {
case "pointLight":
nextEntity = createPointLightEntity({
position: basePosition
});
break;
case "spotLight":
nextEntity = createSpotLightEntity({
position: basePosition
});
break;
case "playerStart":
nextEntity = createPlayerStartEntity({
position: basePosition