forked from alto-io/xgr-arcadians
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.jsx
127 lines (121 loc) · 4.24 KB
/
config.jsx
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
export var g_config = {
spritesheet: {
/** Size of each individual sprite*/
spriteWidth: 128,
spriteHeight: 128,
/**
* How many frames to skip for the duration of the anim
* Increasing this number will result in fewer frames on the sprite sheet
* Decreasing this number will result in more frames on the sprite sheet
*/
framesToSkip: 3,
/**
* Default frame rate of the animations to play.
* Used with framesToSkip to generate properties.json
*/
defaultFrameRate: 60,
/**
* Which animations to use as reference for the spritesheet.
* Their order in the array determines their vertical order on the sheet
*/
targetAnimations: ["Idle", "Walk", "Attack - Knight"],
/** Export settings for the spritesheet */
zipFileName: "YourArcadian.zip",
spritesSubFolder: "",
sheetfileName: "sheet.png",
sheetJsonName: "properties.json",
},
/** List of avatar gltf files. Right now there's one for male and female */
list: [
{
id: "Male",
gltfPath: "/assets/" /** folder to the gltf */,
gltfFileName: "arcadians.gltf" /** filename of the gltf */,
position: { x: 0, y: -1, z: 0 } /** Position on the scene */,
scaling: { x: 1, y: 1, z: -1 } /** Scale of the avatar */,
materials: [
/**
* id - material names defined in Blender
* name - friendly name to be shown on the html page
*/
{ id: "Accessory", name: "Accessory" },
{ id: "Headgear", name: "Headgear" },
{ id: "Hairstyle", name: "Hairstyle" },
{ id: "Eyes", name: "Eyes" },
{ id: "Left Hand", name: "Left Hand" },
{ id: "Right Hand", name: "Right Hand" },
{ id: "Mouth", name: "Mouth" },
{ id: "Top", name: "Top" },
{ id: "Bottom", name: "Bottom" },
{ id: "Shadow", name: "Shadow" },
{ id: "Skin", name: "Skin" },
{ id: "BG", name: "BG" },
{ id: "Background", name: "Background" },
],
animations: [
/**
* id - animation names defined in Blender
* name - friendly name to be shown on the html page
*/
{ id: "m.idle", name: "Idle" },
{ id: "m.walk", name: "Walk" },
{ id: "m.talk", name: "Talk" },
{ id: "m.talkpositive", name: "Talk - Positive" },
{ id: "m.talknegative", name: "Talk - Negative" },
{ id: "m.hit", name: "Hit" },
{ id: "m.stun", name: "Stun" },
{ id: "m.death", name: "Death" },
{ id: "m.win", name: "Win" },
{ id: "m.lose", name: "Lose" },
{ id: "m.skillBuff", name: "Skill - Buff" },
{ id: "m.skillMelee", name: "Skill - Melee" },
{ id: "m.skillRanged", name: "Skill - Ranged" },
{ id: "m.atkAss", name: "Attack - Assassin" },
{ id: "m.atkGun", name: "Attack - Gunner" },
{ id: "m.atkKni", name: "Attack - Knight" },
{ id: "m.atkTec", name: "Attack - Tech" },
{ id: "m.atkWiz", name: "Attack - Wizard" },
],
},
{
id: "Female",
gltfPath: "./v1/gltf/Female/",
gltfFileName: "ArcadianAvatar - Female.gltf",
position: { x: 0, y: -1, z: 0 },
scaling: { x: 1, y: 1, z: -1 },
materials: [
{ id: "mat.femskin", name: "Skin" },
{ id: "mat.femeyes", name: "Eyes" },
{ id: "mat.femhead", name: "Head" },
{ id: "mat.femmouth", name: "Mouth" },
{ id: "mat.femtop", name: "Top" },
{ id: "mat.femleft", name: "Left Hand" },
{ id: "mat.femright", name: "Right Hand" },
{ id: "mat.fembottom", name: "Bottom" },
{ id: "mat.femshad", name: "Shadow" },
],
animations: [
{ id: "f.idle", name: "Idle" },
{ id: "f.walk", name: "Walk" },
{ id: "f.talk", name: "Talk" },
{ id: "f.talkpositive", name: "Talk - Positive" },
{ id: "f.talknegative", name: "Talk - Negative" },
{ id: "f.hit", name: "Hit" },
{ id: "f.stun", name: "Stun" },
{ id: "f.death", name: "Death" },
{ id: "f.win", name: "Win" },
{ id: "f.lose", name: "Lose" },
{ id: "f.skillBuff", name: "Skill - Buff" },
{ id: "f.skillMelee", name: "Skill - Melee" },
{ id: "f.skillRanged", name: "Skill - Ranged" },
{ id: "f.atkAss", name: "Attack - Assassin" },
{ id: "f.atkGun", name: "Attack - Gunner" },
{ id: "f.atkKni", name: "Attack - Knight" },
{ id: "f.atkTec", name: "Attack - Tech" },
{ id: "f.atkWiz", name: "Attack - Wizard" },
],
},
],
partsConfigPath: "/v1/arcadian-parts/partsConfig.json",
oraConfigPath: "/assets/arcadians.ora"
};