project-dung/scenes/rover_game.tscn

263 lines
17 KiB
Plaintext

[gd_scene load_steps=11 format=2]
[ext_resource path="res://scenes/rover.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/rover_level/RoverGame.glb" type="PackedScene" id=4]
[ext_resource path="res://scripts/rover_camera.gd" type="Script" id=5]
[ext_resource path="res://scripts/rover_game.gd" type="Script" id=6]
[ext_resource path="res://assets/rover_level/Material_002.material" type="Material" id=8]
[ext_resource path="res://assets/rover_level/Arrow_MAT.tres" type="Material" id=9]
[sub_resource type="BoxShape" id=7]
extents = Vector3( 2.00704, 1, 1 )
[sub_resource type="Environment" id=5]
background_mode = 2
background_color = Color( 0.752941, 0.752941, 0.752941, 1 )
ambient_light_color = Color( 0.32549, 0.32549, 0.32549, 1 )
ssao_enabled = true
ssao_radius = 15.99
ssao_intensity = 3.14
ssao_bias = 0.455
ssao_edge_sharpness = 0.0
[sub_resource type="BoxShape" id=8]
extents = Vector3( 100, 1, 400 )
[sub_resource type="ArrayMesh" id=11]
resource_name = "RoverGame_Cube008"
surfaces/0 = {
"aabb": AABB( -2.40302, -1, -6.1918, 4.80604, 2, 7.19181 ),
"array_data": PoolByteArray( 0, 0, 128, 191, 0, 0, 128, 191, 0, 0, 128, 63, 129, 0, 0, 127, 0, 54, 0, 60, 0, 0, 128, 191, 0, 0, 128, 191, 0, 0, 128, 63, 0, 129, 127, 63, 0, 48, 0, 52, 0, 0, 128, 191, 0, 0, 128, 191, 0, 0, 128, 63, 0, 0, 0, 127, 0, 54, 0, 0, 0, 0, 128, 191, 0, 0, 128, 63, 0, 0, 128, 63, 129, 0, 0, 127, 0, 57, 0, 60, 0, 0, 128, 191, 0, 0, 128, 63, 0, 0, 128, 63, 0, 0, 0, 127, 0, 57, 0, 0, 0, 0, 128, 191, 0, 0, 128, 63, 0, 0, 128, 63, 0, 127, 129, 63, 0, 59, 0, 52, 0, 0, 128, 191, 0, 0, 128, 191, 64, 44, 58, 192, 129, 0, 0, 127, 0, 54, 0, 58, 0, 0, 128, 191, 0, 0, 128, 191, 64, 44, 58, 192, 0, 129, 127, 63, 0, 48, 0, 56, 0, 0, 128, 191, 0, 0, 128, 191, 64, 44, 58, 192, 0, 129, 127, 63, 0, 48, 0, 56, 0, 0, 128, 191, 0, 0, 128, 191, 64, 44, 58, 192, 0, 0, 127, 193, 0, 54, 0, 58, 0, 0, 128, 191, 0, 0, 128, 63, 64, 44, 58, 192, 129, 0, 0, 127, 0, 57, 0, 58, 0, 0, 128, 191, 0, 0, 128, 63, 64, 44, 58, 192, 0, 0, 127, 193, 0, 57, 0, 58, 0, 0, 128, 191, 0, 0, 128, 63, 64, 44, 58, 192, 0, 127, 127, 63, 0, 59, 0, 56, 0, 0, 128, 191, 0, 0, 128, 63, 64, 44, 58, 192, 0, 127, 127, 63, 0, 59, 0, 56, 0, 0, 128, 63, 0, 0, 128, 191, 0, 0, 128, 63, 0, 129, 127, 63, 0, 54, 0, 52, 0, 0, 128, 63, 0, 0, 128, 191, 0, 0, 128, 63, 0, 0, 0, 127, 0, 54, 0, 52, 0, 0, 128, 63, 0, 0, 128, 191, 0, 0, 128, 63, 127, 0, 0, 127, 0, 54, 0, 52, 0, 0, 128, 63, 0, 0, 128, 63, 0, 0, 128, 63, 0, 0, 0, 127, 0, 57, 0, 52, 0, 0, 128, 63, 0, 0, 128, 63, 0, 0, 128, 63, 0, 127, 129, 63, 0, 57, 0, 52, 0, 0, 128, 63, 0, 0, 128, 63, 0, 0, 128, 63, 127, 0, 0, 127, 0, 57, 0, 52, 0, 0, 128, 63, 0, 0, 128, 191, 64, 44, 58, 192, 0, 129, 127, 63, 0, 54, 0, 56, 0, 0, 128, 63, 0, 0, 128, 191, 64, 44, 58, 192, 0, 129, 127, 63, 0, 54, 0, 56, 0, 0, 128, 63, 0, 0, 128, 191, 64, 44, 58, 192, 0, 0, 127, 193, 0, 54, 0, 56, 0, 0, 128, 63, 0, 0, 128, 191, 64, 44, 58, 192, 127, 0, 0, 127, 0, 54, 0, 56, 0, 0, 128, 63, 0, 0, 128, 63, 64, 44, 58, 192, 0, 0, 127, 193, 0, 57, 0, 56, 0, 0, 128, 63, 0, 0, 128, 63, 64, 44, 58, 192, 0, 127, 127, 63, 0, 57, 0, 56, 0, 0, 128, 63, 0, 0, 128, 63, 64, 44, 58, 192, 0, 127, 127, 63, 0, 57, 0, 56, 0, 0, 128, 63, 0, 0, 128, 63, 64, 44, 58, 192, 127, 0, 0, 127, 0, 57, 0, 56, 116, 69, 37, 190, 0, 0, 128, 63, 67, 35, 198, 192, 129, 51, 127, 63, 0, 57, 0, 58, 116, 69, 37, 190, 0, 0, 128, 63, 67, 35, 198, 192, 127, 127, 0, 127, 0, 57, 0, 58, 116, 69, 37, 190, 0, 0, 128, 63, 67, 35, 198, 192, 0, 127, 127, 63, 0, 59, 0, 56, 116, 69, 37, 190, 0, 0, 128, 63, 67, 35, 198, 192, 0, 127, 127, 63, 0, 59, 0, 56, 116, 69, 37, 190, 0, 0, 128, 191, 67, 35, 198, 192, 129, 51, 127, 63, 0, 54, 0, 58, 116, 69, 37, 190, 0, 0, 128, 191, 67, 35, 198, 192, 0, 129, 127, 63, 0, 48, 0, 56, 116, 69, 37, 190, 0, 0, 128, 191, 67, 35, 198, 192, 0, 129, 127, 63, 0, 48, 0, 56, 116, 69, 37, 190, 0, 0, 128, 191, 67, 35, 198, 192, 127, 127, 0, 127, 0, 54, 0, 58, 116, 69, 37, 62, 0, 0, 128, 191, 67, 35, 198, 192, 0, 129, 127, 63, 0, 54, 0, 56, 116, 69, 37, 62, 0, 0, 128, 191, 67, 35, 198, 192, 0, 129, 127, 63, 0, 54, 0, 56, 116, 69, 37, 62, 0, 0, 128, 191, 67, 35, 198, 192, 127, 127, 0, 127, 0, 54, 0, 56, 116, 69, 37, 62, 0, 0, 128, 191, 67, 35, 198, 192, 127, 51, 127, 63, 0, 54, 0, 56, 116, 69, 37, 62, 0, 0, 128, 63, 67, 35, 198, 192, 127, 127, 0, 127, 0, 57, 0, 56, 116, 69, 37, 62, 0, 0, 128, 63, 67, 35, 198, 192, 0, 127, 127, 63, 0, 57, 0, 56, 116, 69, 37, 62, 0, 0, 128, 63, 67, 35, 198, 192, 0, 127, 127, 63, 0, 57, 0, 56, 116, 69, 37, 62, 0, 0, 128, 63, 67, 35, 198, 192, 127, 51, 127, 63, 0, 57, 0, 56, 13, 203, 25, 192, 0, 0, 128, 63, 64, 44, 58, 192, 129, 51, 127, 63, 0, 57, 0, 58, 13, 203, 25, 192, 0, 0, 128, 63, 64, 44, 58, 192, 0, 0, 127, 193, 0, 57, 0, 58, 13, 203, 25, 192, 0, 0, 128, 63, 64, 44, 58, 192, 0, 127, 127, 63, 0, 59, 0, 56, 13, 203, 25, 192, 0, 0, 128, 191, 64, 44, 58, 192, 129, 51, 127, 63, 0, 54, 0, 58, 13, 203, 25, 192, 0, 0, 128, 191, 64, 44, 58, 192, 0, 129, 127, 63, 0, 48, 0, 56, 13, 203, 25, 192, 0, 0, 128, 191, 64, 44, 58, 192, 0, 0, 127, 193, 0, 54, 0, 58, 13, 203, 25, 64, 0, 0, 128, 63, 64, 44, 58, 192, 0, 0, 127, 193, 0, 57, 0, 56, 13, 203, 25, 64, 0, 0, 128, 63, 64, 44, 58, 192, 0, 127, 127, 63, 0, 57, 0, 56, 13, 203, 25, 64, 0, 0, 128, 63, 64, 44, 58, 192, 127, 51, 127, 63, 0, 57, 0, 56, 13, 203, 25, 64, 0, 0, 128, 191, 64, 44, 58, 192, 0, 129, 127, 63, 0, 54, 0, 56, 13, 203, 25, 64, 0, 0, 128, 191, 64, 44, 58, 192, 0, 0, 127, 193, 0, 54, 0, 56, 13, 203, 25, 64, 0, 0, 128, 191, 64, 44, 58, 192, 127, 51, 127, 63, 0, 54, 0, 56 ),
"array_index_data": PoolByteArray( 0, 0, 10, 0, 3, 0, 0, 0, 6, 0, 10, 0, 28, 0, 47, 0, 32, 0, 28, 0, 44, 0, 47, 0, 23, 0, 19, 0, 27, 0, 23, 0, 16, 0, 19, 0, 15, 0, 4, 0, 17, 0, 15, 0, 2, 0, 4, 0, 7, 0, 14, 0, 20, 0, 7, 0, 1, 0, 14, 0, 26, 0, 5, 0, 13, 0, 26, 0, 18, 0, 5, 0, 35, 0, 40, 0, 29, 0, 35, 0, 38, 0, 40, 0, 21, 0, 34, 0, 8, 0, 21, 0, 37, 0, 34, 0, 12, 0, 41, 0, 25, 0, 12, 0, 30, 0, 41, 0, 9, 0, 45, 0, 11, 0, 9, 0, 49, 0, 45, 0, 13, 0, 46, 0, 31, 0, 42, 0, 51, 0, 26, 0, 24, 0, 54, 0, 22, 0, 24, 0, 50, 0, 54, 0, 39, 0, 52, 0, 43, 0, 39, 0, 55, 0, 52, 0, 33, 0, 48, 0, 7, 0, 20, 0, 53, 0, 36, 0 ),
"blend_shape_data": [ ],
"format": 2194711,
"index_count": 84,
"material": ExtResource( 8 ),
"primitive": 4,
"skeleton_aabb": [ ],
"vertex_count": 56
}
[node name="rover_game" type="Spatial"]
script = ExtResource( 6 )
arrow_viz_distance = 15.0
geode_loot_count_per_chance = {
1: 40,
2: 60
}
[node name="RoverGame" parent="." instance=ExtResource( 4 )]
__meta__ = {
"_edit_group_": true
}
[node name="Arrow" parent="RoverGame" index="7"]
visible = false
[node name="rover" parent="." instance=ExtResource( 1 )]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0511061, 7.27312 )
mass = 2.0
[node name="Camera" type="Camera" parent="rover/visual" index="2"]
transform = Transform( 1.19422e-07, 0.5, -0.866025, -4.37114e-08, 0.866025, 0.5, 1, -2.18557e-08, 1.25278e-07, -13.15, 6.519, 0.386 )
far = 300.0
[node name="rover_camera" type="Camera" parent="."]
transform = Transform( -4.37114e-08, 0.707106, -0.707106, 0, 0.707106, 0.707106, 1, 3.09086e-08, -3.09086e-08, -26.657, 23.188, 50 )
current = true
script = ExtResource( 5 )
[node name="collection_area" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.988 )
collision_layer = 0
collision_mask = 32
[node name="CollisionShape" type="CollisionShape" parent="collection_area"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.0199232 )
shape = SubResource( 7 )
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 5 )
[node name="Floor" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0 )
[node name="CollisionShape" type="CollisionShape" parent="Floor"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.172523, 0.157974, 349.242 )
shape = SubResource( 8 )
[node name="Timer" type="Timer" parent="."]
one_shot = true
autostart = true
[node name="UI" type="CanvasLayer" parent="."]
[node name="Control" type="Control" parent="UI"]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="progress_bar" type="ProgressBar" parent="UI/Control"]
unique_name_in_owner = true
anchor_left = 0.295312
anchor_right = 0.704687
anchor_bottom = 0.0398148
custom_colors/font_color = Color( 0, 0, 0, 0 )
__meta__ = {
"_edit_use_anchors_": true
}
[node name="spawn locations" type="Spatial" parent="."]
[node name="spawn_location" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 72.8999 )
[node name="spawn_location2" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -14.1474, 0, 86.0569 )
[node name="spawn_location3" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 18.2501, 0, 95.3941 )
[node name="spawn_location4" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.749908, 0, 103.394 )
[node name="spawn_location5" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 15.2501, 0, 78.3941 )
[node name="spawn_location6" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 17.7966, 0, 55.7584 )
[node name="spawn_location7" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.0892, 0, 38.7815 )
[node name="spawn_location8" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.0892, 0, 38.7815 )
[node name="spawn_location9" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 9.46336, 0, 135.092 )
[node name="spawn_location10" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.483337, 0, 158.441 )
[node name="spawn_location11" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 19.4833, 0, 182.441 )
[node name="spawn_location12" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -22.4983, 0, 220.83 )
[node name="spawn_location13" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5.50166, 0, 220.83 )
[node name="spawn_location14" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -18.9689, 0, 237.892 )
[node name="spawn_location15" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -7.7439, 0, 291.772 )
[node name="spawn_location16" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 22.1147, 0, 283.915 )
[node name="spawn_location17" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 27.9517, 0, 325.897 )
[node name="spawn_location18" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 13.1347, 0, 352.388 )
[node name="spawn_location19" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -17.1729, 0, 361.368 )
[node name="spawn_location20" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4.60088, 0, 378.654 )
[node name="spawn_location21" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 17.6247, 0, 374.164 )
[node name="spawn_location22" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 17.6247, 0, 374.164 )
[node name="spawn_location23" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -9.0909, 0, 404.921 )
[node name="spawn_location24" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -22.7855, 0, 420.86 )
[node name="spawn_location25" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -14.4789, 0, 436.351 )
[node name="spawn_location26" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.00888, 0, 453.862 )
[node name="spawn_location27" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 6.17516, 0, 438.147 )
[node name="spawn_location28" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 21.2167, 0, 457.005 )
[node name="spawn_location29" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 15.6042, 0, 469.802 )
[node name="spawn_location30" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 25.0332, 0, 496.517 )
[node name="spawn_location31" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 9.99167, 0, 513.355 )
[node name="spawn_location32" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -18.0709, 0, 527.049 )
[node name="spawn_location33" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -20.0709, 0, 545.049 )
[node name="spawn_location34" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -20.0709, 0, 545.049 )
[node name="spawn_location35" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 30.2172, 0, 526.865 )
[node name="spawn_location36" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 13.2172, 0, 528.865 )
[node name="spawn_location37" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -17.0904, 0, 605.195 )
[node name="spawn_location38" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.701813, 0, 602.725 )
[node name="spawn_location39" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 15.0132, 0, 626.747 )
[node name="spawn_location40" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 24.8913, 0, 643.585 )
[node name="spawn_location41" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 15.0132, 0, 664.688 )
[node name="spawn_location42" type="Position3D" parent="spawn locations" groups=["rock_spawn_location"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 17.4828, 0, 603.399 )
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 0.866025, 2.18557e-08, -0.5, 0.5, -3.78552e-08, 0.866025, 0, -1, -4.37114e-08, 0, 87.952, 53 )
shadow_enabled = true
[node name="exit_trigger" type="Area" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1.25529, 0, 0.225982, -7.17776 )
collision_layer = 64
collision_mask = 2
[node name="CollisionShape" type="CollisionShape" parent="exit_trigger"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.844644, -0.601815 )
shape = SubResource( 7 )
[node name="LevelArrow" type="MeshInstance" parent="."]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.689029, 16.3183 )
mesh = SubResource( 11 )
material/0 = ExtResource( 9 )
[connection signal="rover_exit_level" from="rover" to="." method="_on_rover_rover_exit_level"]
[connection signal="area_entered" from="collection_area" to="." method="_on_collection_area_area_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
[editable path="RoverGame"]
[editable path="rover"]