forked from croquet/microverse-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcampus.js
61 lines (55 loc) · 2.05 KB
/
campus.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright 2022 by Croquet Corporation, Inc. All Rights Reserved.
// https://croquet.io
export function init(Constants) {
Constants.AvatarNames = [
"newwhite", "madhatter", "marchhare", "queenofhearts", "cheshirecat", "alice"
];
Constants.SystemBehaviorDirectory = "behaviors/croquet";
Constants.SystemBehaviorModules = [
"menu.js", "elected.js", "propertySheet.js", "stickyNote.js", "avatarEvents.js"
];
Constants.UserBehaviorDirectory = "behaviors/campus";
Constants.UserBehaviorModules = [
"lights.js", "livemap.js"
];
Constants.DefaultCards = [
{
card: {
name:"world model",
dataScale: [9, 9, 9],
dataTranslation: [108, -17.5, -128],
dataRotation: [0, Math.PI / 12 * 5, 0],
// dataTranslation: [22, -10.7, -20],
layers: ["walk"],
type: "3d",
dataLocation: "3Ep4wIDFLOzFTJAw0JPxevGXaAv1FM_VZ1jSCqYN7R4ELTExNTZ_amojLCkgNmswNmsmNyo0MCAxaywqajBqAiETJzwpDDYELhQmBx0hdgI9JDM8MhAOEhwcd2osKmsmNyo0MCAxaygsJjcqMyA3NiBqEXAGci8jHHMhFg8JLgwVADwwMTU1CjcsCj8Rd3c9M3J8DCcXN3x3LTFwHGohJDEkaicHfCd3KXYsDAMyCxQENgILHHwLPQo2DHIgKzYCdHANBjQEInEBLQFycnE",
modelType: "glb",
singleSided: true,
shadow: true,
placeholder: false,
placeholderSize: [100, 0.01, 100],
placeholderColor: 0xcccccc,
placeholderOffset: [0, -1.7, 0],
}
},
{
card: {
name: "light",
layers: ["light"],
type: "lighting",
behaviorModules: ["Light"],
dataLocation: "./assets/sky/abandoned_parking_4k.jpg",
dataType: "jpg",
}
},
{
card: {
name: "live map",
layers: ["pointer"],
type: "object",
behaviorModules: ["CampusMap"],
}
}
];
}