Files
ShootahGame3D/game.tscn

206 lines
7.8 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://bc23rfm57cbjk"]
[ext_resource type="PackedScene" uid="uid://h8tyroiwkr42" path="res://mob/player.tscn" id="1_80nbo"]
[ext_resource type="Script" uid="uid://pnp0k1jmvccp" path="res://game.gd" id="1_eow3j"]
[ext_resource type="Material" uid="uid://c23xehahalr4v" path="res://start_location.tres" id="1_fc0e3"]
[ext_resource type="Material" uid="uid://c15gyykabf16x" path="res://floor.tres" id="2_7jktm"]
[ext_resource type="Material" uid="uid://ba7yoi5ia0isy" path="res://bridge.tres" id="3_ryrav"]
[ext_resource type="PackedScene" uid="uid://3t7u0llrbbi" path="res://mob/bat_mob.tscn" id="5_7jktm"]
[ext_resource type="PackedScene" uid="uid://c0ky5ie5cfgh2" path="res://mob/spawner/mob_spawner_3d.tscn" id="6_ryrav"]
[ext_resource type="PackedScene" uid="uid://ht0ktfrqr1ef" path="res://player/cookie_3d.tscn" id="8_j5wjh"]
[sub_resource type="Environment" id="Environment_80nbo"]
background_mode = 1
background_color = Color(0.15376, 0.719055, 0.829417, 1)
ambient_light_source = 2
ambient_light_color = Color(0.852816, 0.773674, 0.634462, 1)
tonemap_mode = 2
fog_enabled = true
fog_light_color = Color(0.0437325, 0.398574, 0.495351, 1)
fog_density = 0.0013
fog_height = -5.0
fog_height_density = 0.625
volumetric_fog_density = 0.0125
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_eow3j"]
[sub_resource type="LabelSettings" id="LabelSettings_ryrav"]
font_size = 56
shadow_size = 4
shadow_color = Color(0, 0, 0, 1)
[node name="Game" type="Node3D"]
script = ExtResource("1_eow3j")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_80nbo")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.816218, 0.385055, 0.430721, -0.572746, 0.441435, 0.690722, 0.0758305, -0.810474, 0.580846, 0, 11.331, 0)
shadow_enabled = true
[node name="BatMob" parent="." instance=ExtResource("5_7jktm")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23, 2, -31)
[node name="MobSpawner3D" parent="." instance=ExtResource("6_ryrav")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23, 0, -47)
mob_to_spawn = ExtResource("5_7jktm")
[node name="MobSpawner3D2" parent="." instance=ExtResource("6_ryrav")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40, 0, -52)
mob_to_spawn = ExtResource("5_7jktm")
[node name="MobSpawner3D3" parent="." instance=ExtResource("6_ryrav")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -48, 0, -27)
mob_to_spawn = ExtResource("5_7jktm")
[node name="KillPlane" type="Area3D" parent="."]
collision_layer = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="KillPlane"]
transform = Transform3D(6.4, 0, 0, 0, 6.4, 0, 0, 0, 6.4, -28, -7, -22)
shape = SubResource("WorldBoundaryShape3D_eow3j")
debug_color = Color(0.635294, 0.34902, 0.988235, 0.792157)
[node name="Player" parent="." instance=ExtResource("1_80nbo")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24, 2, -19)
[node name="ScoreLabel" type="Label" parent="."]
unique_name_in_owner = true
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -106.0
offset_top = 24.0
offset_right = 106.0
offset_bottom = 101.0
grow_horizontal = 2
text = "Score: 0"
label_settings = SubResource("LabelSettings_ryrav")
[node name="cookie_3d" parent="." instance=ExtResource("8_j5wjh")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, -4)
[node name="cookie_3d_2" parent="." instance=ExtResource("8_j5wjh")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -51, 0, -53)
[node name="CSGBox3D" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5, -7.5, -5)
material_override = ExtResource("1_fc0e3")
use_collision = true
size = Vector3(10, 15, 10)
material = ExtResource("2_7jktm")
[node name="CSGBox3D6" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -51, -7.5, -53)
use_collision = true
size = Vector3(10, 15, 10)
material = ExtResource("1_fc0e3")
[node name="CSGBox3D3" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.5, -7, -22)
use_collision = true
size = Vector3(5, 14, 20)
material = ExtResource("2_7jktm")
[node name="CSGBox3D8" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.5, -7.5, -38)
material_override = ExtResource("3_ryrav")
use_collision = true
size = Vector3(5, 15, 12)
material = ExtResource("2_7jktm")
[node name="CSGBox3D15" type="CSGBox3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -33.5, -7.5, -54)
material_override = ExtResource("3_ryrav")
use_collision = true
size = Vector3(5, 15, 7)
material = ExtResource("2_7jktm")
[node name="CSGBox3D10" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40.5, -1, -35.35)
use_collision = true
size = Vector3(5, 2, 4.1)
material = ExtResource("3_ryrav")
[node name="CSGBox3D12" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -51.5, -7.5, -35)
material_override = ExtResource("3_ryrav")
use_collision = true
size = Vector3(1, 15, 4)
material = ExtResource("2_7jktm")
[node name="CSGBox3D13" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -54.5, -7.5, -40)
material_override = ExtResource("3_ryrav")
use_collision = true
size = Vector3(1, 15, 4)
material = ExtResource("2_7jktm")
[node name="CSGBox3D14" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -51.5, -7.5, -44)
material_override = ExtResource("3_ryrav")
use_collision = true
size = Vector3(1, 15, 4)
material = ExtResource("2_7jktm")
[node name="CSGBox3D11" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40.5, -1, -42.15)
use_collision = true
size = Vector3(5, 2, 4.3)
material = ExtResource("3_ryrav")
[node name="CSGBox3D9" type="CSGBox3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -11.5, -7.5, -24)
material_override = ExtResource("3_ryrav")
use_collision = true
size = Vector3(5, 15, 9)
material = ExtResource("2_7jktm")
[node name="CSGBox3D5" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40.5, -7.5, -53.5)
use_collision = true
size = Vector3(7, 15, 15)
material = ExtResource("2_7jktm")
[node name="CSGBox3D2" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.5, -7.5, -26.5)
use_collision = true
size = Vector3(15, 15, 11)
material = ExtResource("2_7jktm")
[node name="CSGBox3D16" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.5, -6.5, -15.5)
use_collision = true
size = Vector3(15, 17, 11)
material = ExtResource("2_7jktm")
[node name="CSGBox3D7" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -43, -7.5, -26.5)
use_collision = true
size = Vector3(24, 15, 11)
material = ExtResource("2_7jktm")
[node name="CSGBox3D4" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23, -7.5, -53)
use_collision = true
size = Vector3(14, 15, 18)
material = ExtResource("2_7jktm")
[node name="CSGBox3D17" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -36.5, 7.5, -26.5)
use_collision = true
size = Vector3(3, 15, 3)
material = ExtResource("2_7jktm")
[node name="CSGBox3D18" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -23.5, 7.5, -51.5)
use_collision = true
size = Vector3(3, 15, 3)
material = ExtResource("2_7jktm")
[connection signal="mob_spawned" from="MobSpawner3D" to="." method="_on_mob_spawner_3d_mob_spawned"]
[connection signal="mob_spawned" from="MobSpawner3D2" to="." method="_on_mob_spawner_3d_mob_spawned"]
[connection signal="mob_spawned" from="MobSpawner3D3" to="." method="_on_mob_spawner_3d_mob_spawned"]
[connection signal="body_entered" from="KillPlane" to="." method="_on_kill_plane_body_entered"]