CapKosmostacio.tscn 7,2 КБ
Newer Older
tigisae's avatar
tigisae включено в состав коммита
1
2
[gd_scene load_steps=13 format=2]

magcourier's avatar
magcourier включено в состав коммита
3
4
5
6
7
8
9
10
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacioResursoj/water.normal.PNG" type="Texture" id=1]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacioResursoj/sounds/spacestation.ogg" type="AudioStream" id=2]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacioResursoj/sounds/Sound_forcefield.ogg" type="AudioStream" id=3]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacioResursoj/Stars Sphere.jpg" type="Texture" id=4]
[ext_resource path="res://blokoj/kosmostacioj/resursoj/CapKosmostacioResursoj/hangaroKap.tscn" type="PackedScene" id=5]



tigisae's avatar
tigisae включено в состав коммита
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

[sub_resource type="SpatialMaterial" id=1]
flags_transparent = true
albedo_color = Color( 0.431373, 0.415686, 0.576471, 0.196078 )
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 1 )
uv1_scale = Vector3( 100, 2, 1 )
uv1_offset = Vector3( 0.732033, 0, 0 )

[sub_resource type="PlaneMesh" id=2]
size = Vector2( 557, 18 )

[sub_resource type="Animation" id=3]
resource_name = "uv_forcefield"
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:material_override:uv1_offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 1, 0, 0 ) ]
}

[sub_resource type="PanoramaSky" id=4]
panorama = ExtResource( 4 )

[sub_resource type="Environment" id=5]
tigisae's avatar
tigisae включено в состав коммита
44
background_mode = 2
tigisae's avatar
tigisae включено в состав коммита
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
128
129
130
131
background_sky = SubResource( 4 )
background_energy = 2.0

[sub_resource type="GDScript" id=6]
script/source = "extends KinematicBody

const rot = 0.02
const speed = 5
const Gr = -80
var vel = Vector3()
var rot_x = 0
var rot_y = 0

var GUI_management: bool = false;


func _ready():
	Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)

func _physics_process(delta):
	var dir = Vector3()
	
	if Input.is_action_just_pressed(\"ui_cancel\"):
		get_tree().quit()
		
		# Player actions processing
	if Input.is_action_just_pressed(\"gui_management\"):
		GUI_management = !GUI_management
	if GUI_management:
		Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) 
		return
	else:
		Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) 
	
		
	if Input.is_action_pressed(\"ui_left\"):
		dir.x = -1
	if Input.is_action_pressed(\"ui_right\"):
		dir.x = 1
	if Input.is_action_pressed(\"ui_up\"):
		dir.z = -1
	if Input.is_action_pressed(\"ui_down\"):
		dir.z = 1
		
	if dir:
		dir *= speed
		dir = dir.rotated(Vector3(0,1,0), rotation.y)
		
	vel.x = dir.x
	vel.z = dir.z
		
	vel.y = Gr * delta
	vel = move_and_slide(vel, Vector3(0,1,0))
	
func _input(event):
	if event is InputEventMouseMotion:
		rot_y = event.relative.x
		rot_x = event.relative.y
		if rot_x < -1:
			rot_x = -1
		if rot_x > 1:
			rot_x = 1
		rotate_y(-rot_y * 0.2 * rot)
		$playerCamera.rotate_x(-rot_x * rot)
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
"

[sub_resource type="CapsuleShape" id=7]
radius = 0.5
height = 1.8
tigisae's avatar
tigisae включено в состав коммита
132
133
134

[node name="Spatial" type="Spatial"]

tigisae's avatar
tigisae включено в состав коммита
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[node name="forcefield" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1.9606, -8.57006e-08, 0, 10.0743, -40.0987 )
material_override = SubResource( 1 )
mesh = SubResource( 2 )
material/0 = null

[node name="AnimationPlayer" type="AnimationPlayer" parent="forcefield"]
autoplay = "uv_forcefield"
playback_speed = -0.3
anims/uv_forcefield = SubResource( 3 )

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="forcefield"]
transform = Transform( 1, 0, 0, 0, 1, -1.8304e-09, 0, 1.8304e-09, 1, 0, 0, 0 )
stream = ExtResource( 3 )
unit_db = 30.0
autoplay = true
max_distance = 20.0
emission_angle_degrees = 74.0

[node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="forcefield"]
transform = Transform( 1, 0, 0, 0, 0.510047, 3.18638e-08, 0, 9.33591e-10, 1, -21.2328, 0, 0 )
stream = ExtResource( 3 )
unit_db = 30.0
autoplay = true
max_distance = 20.0
emission_angle_degrees = 74.0

[node name="AudioStreamPlayer3D3" type="AudioStreamPlayer3D" parent="forcefield"]
transform = Transform( 1, 0, 0, 0, 0.510047, 3.18638e-08, 0, 9.33591e-10, 1, 22.8598, 0, 0 )
stream = ExtResource( 3 )
unit_db = 30.0
autoplay = true
max_distance = 20.0
emission_angle_degrees = 74.0
tigisae's avatar
tigisae включено в состав коммита
169
170

[node name="OmniLight" type="OmniLight" parent="."]
tigisae's avatar
tigisae включено в состав коммита
171
172
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 14.5066, 3.35733 )
omni_range = 67.8158
tigisae's avatar
tigisae включено в состав коммита
173
174

[node name="OmniLight1" type="OmniLight" parent="OmniLight"]
tigisae's avatar
tigisae включено в состав коммита
175
176
177
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -27.9527, 3.238, -15.8621 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
178

tigisae's avatar
tigisae включено в состав коммита
179
180
181
182
183
184
185
186
187
[node name="OmniLight2" type="OmniLight" parent="OmniLight"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30.4489, 3.238, -15.8621 )
light_bake_mode = 2
omni_range = 39.6056

[node name="OmniLight4" type="OmniLight" parent="OmniLight"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -27.9527, 3.238, 8.70407 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
188
189

[node name="OmniLight3" type="OmniLight" parent="OmniLight"]
tigisae's avatar
tigisae включено в состав коммита
190
191
192
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30.4489, 3.238, 8.70407 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
193

tigisae's avatar
tigisae включено в состав коммита
194
195
196
197
[node name="OmniLight6" type="OmniLight" parent="OmniLight"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -27.9527, 3.238, 34.7077 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
198
199

[node name="OmniLight5" type="OmniLight" parent="OmniLight"]
tigisae's avatar
tigisae включено в состав коммита
200
201
202
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30.4489, 3.238, 34.7077 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
203

tigisae's avatar
tigisae включено в состав коммита
204
205
206
207
[node name="OmniLight8" type="OmniLight" parent="OmniLight"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -27.9527, 3.238, 60.7151 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
208
209

[node name="OmniLight7" type="OmniLight" parent="OmniLight"]
tigisae's avatar
tigisae включено в состав коммита
210
211
212
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30.4489, 3.238, 60.7151 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
213

tigisae's avatar
tigisae включено в состав коммита
214
215
216
217
[node name="OmniLight10" type="OmniLight" parent="OmniLight"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -27.9527, 3.238, 84.3265 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
218
219

[node name="OmniLight9" type="OmniLight" parent="OmniLight"]
tigisae's avatar
tigisae включено в состав коммита
220
221
222
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30.4489, 3.238, 84.3265 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
223

tigisae's avatar
tigisae включено в состав коммита
224
225
226
227
[node name="OmniLight12" type="OmniLight" parent="OmniLight"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -27.9527, 3.238, 110.083 )
light_bake_mode = 2
omni_range = 39.6056
tigisae's avatar
tigisae включено в состав коммита
228
229

[node name="OmniLight11" type="OmniLight" parent="OmniLight"]
tigisae's avatar
tigisae включено в состав коммита
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30.4489, 3.238, 110.083 )
light_bake_mode = 2
omni_range = 39.6056

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 5 )

[node name="player" type="KinematicBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.431714, 1.32987, 15.5372 )
script = SubResource( 6 )

[node name="playerCamera" type="Camera" parent="player"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.055528, 1.30982, 0.173412 )
far = 150.0

[node name="CollisionShape" type="CollisionShape" parent="player"]
transform = Transform( 1, 0, 0, 0, -1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0.162331, 0 )
shape = SubResource( 7 )

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 2 )
volume_db = -14.058
autoplay = true

[node name="hangaro" parent="." instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0523682, 0 )