-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperson.go
More file actions
77 lines (77 loc) · 1.39 KB
/
person.go
File metadata and controls
77 lines (77 loc) · 1.39 KB
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
components {
id: "person"
component: "/main/person.script"
}
components {
id: "personUI"
component: "/main/personUI.gui"
}
embedded_components {
id: "sprite"
type: "sprite"
data: "default_animation: \"person-idle\"\n"
"material: \"/builtins/materials/sprite.material\"\n"
"textures {\n"
" sampler: \"texture_sampler\"\n"
" texture: \"/main/game.atlas\"\n"
"}\n"
""
position {
z: 0.1
}
scale {
x: 0.05
y: 0.05
}
}
embedded_components {
id: "collisionobject"
type: "collisionobject"
data: "type: COLLISION_OBJECT_TYPE_KINEMATIC\n"
"mass: 0.0\n"
"friction: 0.1\n"
"restitution: 0.5\n"
"group: \"people\"\n"
"mask: \"lasers\"\n"
"embedded_collision_shape {\n"
" shapes {\n"
" shape_type: TYPE_BOX\n"
" position {\n"
" }\n"
" rotation {\n"
" }\n"
" index: 0\n"
" count: 3\n"
" }\n"
" data: 11.710526\n"
" data: 9.0936365\n"
" data: 10.0\n"
"}\n"
""
}
embedded_components {
id: "rocket_factory"
type: "factory"
data: "prototype: \"/main/rocket.go\"\n"
""
}
embedded_components {
id: "weapon"
type: "sprite"
data: "default_animation: \"bow\"\n"
"material: \"/builtins/materials/sprite.material\"\n"
"textures {\n"
" sampler: \"texture_sampler\"\n"
" texture: \"/main/game.atlas\"\n"
"}\n"
""
position {
x: 13.0
y: 3.0
z: 1.0
}
scale {
x: 0.03
y: 0.03
}
}