Skip to content

Commit 44b0953

Browse files
committed
create active camera in init script
1 parent 89e14d0 commit 44b0953

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

scripts/init-project.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Entity } from "@dreamlab/engine";
12
import * as cli from "jsr:@std/cli";
23
import * as fs from "jsr:@std/fs";
34
import * as path from "jsr:@std/path";
@@ -8,7 +9,20 @@ const projectTemplate = {
89
engine_revision: "2024-08.001",
910
},
1011
scenes: {
11-
main: {},
12+
main: {
13+
registration: [],
14+
world: [],
15+
local: [
16+
{
17+
ref: Entity.createRef(),
18+
type: "@core/Camera",
19+
name: "Camera",
20+
values: { active: true },
21+
},
22+
],
23+
server: [],
24+
prefabs: [],
25+
},
1226
},
1327
};
1428

0 commit comments

Comments
 (0)