started work on moving collision layers and added jump and land sounds

This commit is contained in:
derek
2024-09-25 16:16:20 -05:00
parent 8c2cd81b5c
commit 7c45e53502
20 changed files with 415 additions and 368 deletions

View File

@@ -55,8 +55,8 @@ blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_46pc3") shadow_mesh = SubResource("ArrayMesh_46pc3")
[node name="ammo_pickup" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["magnet", "pickup", "scene_rigidbody"]] [node name="ammo_pickup" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["magnet", "pickup", "scene_rigidbody"]]
collision_layer = 4 collision_layer = 16
collision_mask = 6 collision_mask = 17
script = ExtResource("1_sni3c") script = ExtResource("1_sni3c")
collision_shape = NodePath("CollisionShape3D2") collision_shape = NodePath("CollisionShape3D2")
despawning = true despawning = true

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ height = 1.02109
collision_layer = 4 collision_layer = 4
collision_mask = 6 collision_mask = 6
script = ExtResource("1_gmdl1") script = ExtResource("1_gmdl1")
pickupType = "jump"
[node name="Area3D" type="Area3D" parent="."] [node name="Area3D" type="Area3D" parent="."]

View File

@@ -26,6 +26,8 @@ surface_material_override/0 = SubResource("StandardMaterial3D_ur8dk")
shape = SubResource("ConcavePolygonShape3D_g882c") shape = SubResource("ConcavePolygonShape3D_g882c")
[node name="Area3D" type="Area3D" parent="."] [node name="Area3D" type="Area3D" parent="."]
collision_layer = 0
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)

View File

@@ -6,6 +6,8 @@
size = Vector3(1, 8.23889, 1.6582) size = Vector3(1, 8.23889, 1.6582)
[node name="LadderCollisionCheck" type="Area3D"] [node name="LadderCollisionCheck" type="Area3D"]
collision_layer = 2
collision_mask = 0
script = ExtResource("1_ugi45") script = ExtResource("1_ugi45")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."] [node name="CollisionShape3D" type="CollisionShape3D" parent="."]

View File

@@ -96,8 +96,8 @@ height = 0.712
[node name="money1" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["magnet", "pickup", "scene_rigidbody"]] [node name="money1" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["magnet", "pickup", "scene_rigidbody"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0355983, 4.76837e-07, -0.0110531) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0355983, 4.76837e-07, -0.0110531)
collision_layer = 4 collision_layer = 16
collision_mask = 6 collision_mask = 17
script = ExtResource("2_itgxg") script = ExtResource("2_itgxg")
collision_shape = NodePath("CollisionShape3D") collision_shape = NodePath("CollisionShape3D")
despawning = true despawning = true

View File

@@ -36,7 +36,7 @@ radius = 8.0
[node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("weapon_holder") groups=["player"]] [node name="Player" type="CharacterBody3D" node_paths=PackedStringArray("weapon_holder") groups=["player"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11359, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.11359, 0)
collision_layer = 3 collision_layer = 11
safe_margin = 0.5 safe_margin = 0.5
script = ExtResource("1_x7wms") script = ExtResource("1_x7wms")
dead_player = ExtResource("2_4hoys") dead_player = ExtResource("2_4hoys")
@@ -116,19 +116,19 @@ script = ExtResource("7_pnp4a")
[node name="BulletRay" type="RayCast3D" parent="Head/Camera3D"] [node name="BulletRay" type="RayCast3D" parent="Head/Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.89879) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.89879)
target_position = Vector3(0, 0, -200) target_position = Vector3(0, 0, -200)
collision_mask = 7 collision_mask = 5
collide_with_areas = true collide_with_areas = true
[node name="InteractRay" type="RayCast3D" parent="Head/Camera3D"] [node name="InteractRay" type="RayCast3D" parent="Head/Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0521634, -0.764677) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0521634, -0.764677)
target_position = Vector3(0, 0, -3) target_position = Vector3(0, 0, -3)
collision_mask = 8 collision_mask = 2
hit_from_inside = true hit_from_inside = true
collide_with_areas = true collide_with_areas = true
[node name="pick_up_detection" type="Area3D" parent="."] [node name="pick_up_detection" type="Area3D" parent="."]
collision_layer = 0 collision_layer = 0
collision_mask = 4 collision_mask = 16
[node name="CollisionShape3D2" type="CollisionShape3D" parent="pick_up_detection"] [node name="CollisionShape3D2" type="CollisionShape3D" parent="pick_up_detection"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0810862, 0.330574, -0.138576) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0810862, 0.330574, -0.138576)
@@ -136,7 +136,7 @@ shape = SubResource("BoxShape3D_nfpjw")
[node name="pick_up_magnet" type="Area3D" parent="."] [node name="pick_up_magnet" type="Area3D" parent="."]
collision_layer = 0 collision_layer = 0
collision_mask = 4 collision_mask = 16
[node name="CollisionShape3D" type="CollisionShape3D" parent="pick_up_magnet"] [node name="CollisionShape3D" type="CollisionShape3D" parent="pick_up_magnet"]
shape = SubResource("SphereShape3D_xfie3") shape = SubResource("SphereShape3D_xfie3")
@@ -146,8 +146,9 @@ shape = SubResource("SphereShape3D_xfie3")
[node name="PickupSound" type="AudioStreamPlayer" parent="Audio"] [node name="PickupSound" type="AudioStreamPlayer" parent="Audio"]
stream = ExtResource("8_dwqsx") stream = ExtResource("8_dwqsx")
[node name="LandSound" type="AudioStreamPlayer3D" parent="Audio"] [node name="LandSound" type="AudioStreamPlayer" parent="Audio"]
stream = ExtResource("10_tn0pn") stream = ExtResource("10_tn0pn")
volume_db = -5.0
[node name="EarWind" type="AudioStreamPlayer" parent="Audio"] [node name="EarWind" type="AudioStreamPlayer" parent="Audio"]
stream = ExtResource("11_he7p5") stream = ExtResource("11_he7p5")

View File

@@ -339,8 +339,8 @@ _data = {
[node name="rat" type="CharacterBody3D" groups=["breakable", "npc", "rat", "spawned"]] [node name="rat" type="CharacterBody3D" groups=["breakable", "npc", "rat", "spawned"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.117073, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.117073, 0)
collision_layer = 2 collision_layer = 64
collision_mask = 7 collision_mask = 45
script = ExtResource("1_m8jnv") script = ExtResource("1_m8jnv")
dead_rat = ExtResource("2_it4rd") dead_rat = ExtResource("2_it4rd")

View File

@@ -25,8 +25,8 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.356676)
target_position = Vector3(0, 0, -1) target_position = Vector3(0, 0, -1)
[node name="Area3D" type="Area3D" parent="."] [node name="Area3D" type="Area3D" parent="."]
collision_layer = 7 collision_layer = 2
collision_mask = 7 collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"] [node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0113525, -0.302734) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0113525, -0.302734)

View File

@@ -731,6 +731,7 @@ _surfaces = [{
size = Vector3(0.816284, 0.725159, 0.75531) size = Vector3(0.816284, 0.725159, 0.75531)
[node name="spider" type="CharacterBody3D" groups=["enemy"]] [node name="spider" type="CharacterBody3D" groups=["enemy"]]
collision_layer = 8
script = ExtResource("1_7e7fe") script = ExtResource("1_7e7fe")
bullet = ExtResource("2_aew5r") bullet = ExtResource("2_aew5r")
casing = ExtResource("3_e5ft5") casing = ExtResource("3_e5ft5")
@@ -873,8 +874,8 @@ mesh = SubResource("ArrayMesh_d210d")
[node name="Area3D" type="Area3D" parent="body" groups=["enemy_target"]] [node name="Area3D" type="Area3D" parent="body" groups=["enemy_target"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.03709, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.03709, 0)
collision_layer = 15 collision_layer = 8
collision_mask = 15 collision_mask = 13
script = ExtResource("7_8vkma") script = ExtResource("7_8vkma")
[node name="TargetShape" type="CollisionShape3D" parent="body/Area3D" groups=["enemy"]] [node name="TargetShape" type="CollisionShape3D" parent="body/Area3D" groups=["enemy"]]

View File

@@ -51,8 +51,8 @@ blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_dsuo5") shadow_mesh = SubResource("ArrayMesh_dsuo5")
[node name="stamina_pickup" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["magnet", "pickup", "scene_rigidbody"]] [node name="stamina_pickup" type="RigidBody3D" node_paths=PackedStringArray("collision_shape") groups=["magnet", "pickup", "scene_rigidbody"]]
collision_layer = 4 collision_layer = 16
collision_mask = 6 collision_mask = 17
script = ExtResource("1_1udac") script = ExtResource("1_1udac")
collision_shape = NodePath("CollisionShape3D2") collision_shape = NodePath("CollisionShape3D2")
despawning = true despawning = true

View File

@@ -11,7 +11,7 @@ config_version=5
[application] [application]
config/name="First Person Test" config/name="First Person Test"
run/main_scene="res://scenes/test_level_2v2.tscn" run/main_scene="res://scenes/test_level_2v2NOENEMIES.tscn"
config/features=PackedStringArray("4.3", "Forward Plus") config/features=PackedStringArray("4.3", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"
@@ -120,6 +120,8 @@ interact={
3d_physics/layer_3="Player" 3d_physics/layer_3="Player"
3d_physics/layer_4="Enemy" 3d_physics/layer_4="Enemy"
3d_physics/layer_5="Pickups" 3d_physics/layer_5="Pickups"
3d_physics/layer_6="Objects"
3d_physics/layer_7="NPC"
[physics] [physics]

View File

@@ -1,43 +1,43 @@
[gd_scene load_steps=118 format=4 uid="uid://bwycouipowqpt"] [gd_scene load_steps=118 format=4 uid="uid://bicj5x7nc8tby"]
[ext_resource type="Script" path="res://scripts/LevelManager.gd" id="1_tqbvs"] [ext_resource type="Script" path="res://scripts/LevelManager.gd" id="1_wls0y"]
[ext_resource type="PackedScene" uid="uid://2o2wcc5i1al4" path="res://assets/rocket_launcher.tscn" id="2_ayfr5"] [ext_resource type="PackedScene" uid="uid://brl0bsqjl5dg3" path="res://assets/mac_10.tscn" id="2_8r4nh"]
[ext_resource type="PackedScene" uid="uid://brl0bsqjl5dg3" path="res://assets/mac_10.tscn" id="2_fu1eu"] [ext_resource type="PackedScene" uid="uid://2o2wcc5i1al4" path="res://assets/rocket_launcher.tscn" id="3_08b0x"]
[ext_resource type="PackedScene" uid="uid://drwae3loscbw7" path="res://assets/player.tscn" id="4_4bx26"] [ext_resource type="PackedScene" uid="uid://drwae3loscbw7" path="res://assets/player.tscn" id="4_1cxxb"]
[ext_resource type="Texture2D" uid="uid://dqs06ic3vjtwk" path="res://assets/Models/asphalt1.albedo.jpg" id="5_cu3ho"] [ext_resource type="Texture2D" uid="uid://dqs06ic3vjtwk" path="res://assets/Models/asphalt1.albedo.jpg" id="5_6x2th"]
[ext_resource type="Texture2D" uid="uid://bu3w5slec6gib" path="res://assets/Models/brick1.png" id="6_qnqv0"] [ext_resource type="Texture2D" uid="uid://bu3w5slec6gib" path="res://assets/Models/brick1.png" id="6_ic064"]
[ext_resource type="Texture2D" uid="uid://dtccywxaqkqwk" path="res://assets/Models/brick1.normal.png" id="7_vugqb"] [ext_resource type="Texture2D" uid="uid://dtccywxaqkqwk" path="res://assets/Models/brick1.normal.png" id="7_bou4v"]
[ext_resource type="PackedScene" uid="uid://20csd6dmwj4y" path="res://assets/jump_platform.tscn" id="8_p70qu"] [ext_resource type="PackedScene" uid="uid://20csd6dmwj4y" path="res://assets/jump_platform.tscn" id="8_f4nmn"]
[ext_resource type="PackedScene" uid="uid://dws2vwfxubqvb" path="res://assets/cannon.tscn" id="9_3s52v"] [ext_resource type="PackedScene" uid="uid://dws2vwfxubqvb" path="res://assets/cannon.tscn" id="9_5ta35"]
[ext_resource type="PackedScene" uid="uid://bpkmyd3wvqi5p" path="res://assets/boombox.tscn" id="10_qt0hx"] [ext_resource type="PackedScene" uid="uid://bpkmyd3wvqi5p" path="res://assets/boombox.tscn" id="10_mwwc8"]
[ext_resource type="AudioStream" uid="uid://jo4n05go5hdt" path="res://assets/Audio/train-pass-by-steady-loop-SBA-300156766.wav" id="11_7i6dp"] [ext_resource type="AudioStream" uid="uid://jo4n05go5hdt" path="res://assets/Audio/train-pass-by-steady-loop-SBA-300156766.wav" id="11_26a3n"]
[ext_resource type="PackedScene" uid="uid://cnfc8rtk6l1d8" path="res://assets/crate1.tscn" id="12_3o4sy"] [ext_resource type="PackedScene" uid="uid://cnfc8rtk6l1d8" path="res://assets/crate1.tscn" id="12_6tji4"]
[ext_resource type="PackedScene" uid="uid://c7vrpfdh603kr" path="res://assets/bottle_1.tscn" id="13_7gwv7"] [ext_resource type="PackedScene" uid="uid://c7vrpfdh603kr" path="res://assets/bottle_1.tscn" id="13_vqdl4"]
[ext_resource type="PackedScene" uid="uid://c6bpysq1tjhy4" path="res://vendingmahcine.tscn" id="14_22shq"] [ext_resource type="PackedScene" uid="uid://c6bpysq1tjhy4" path="res://vendingmahcine.tscn" id="14_lsabb"]
[ext_resource type="Shader" path="res://assets/crtTest.gdshader" id="15_10gwk"] [ext_resource type="Shader" path="res://assets/crtTest.gdshader" id="15_g5ipl"]
[ext_resource type="PackedScene" uid="uid://cp7tsicuudd6v" path="res://assets/boxcar_1.tscn" id="16_4k42u"] [ext_resource type="PackedScene" uid="uid://cp7tsicuudd6v" path="res://assets/boxcar_1.tscn" id="16_rag5o"]
[ext_resource type="Texture2D" uid="uid://ciwlwynk4jt2k" path="res://assets/Models/boxcar1.albdeo.png" id="17_njmge"] [ext_resource type="Texture2D" uid="uid://ciwlwynk4jt2k" path="res://assets/Models/boxcar1.albdeo.png" id="17_1vrnp"]
[ext_resource type="Texture2D" uid="uid://cixlw3pnskjm4" path="res://assets/Models/boxcar1.rough.png" id="18_neu5d"] [ext_resource type="Texture2D" uid="uid://cixlw3pnskjm4" path="res://assets/Models/boxcar1.rough.png" id="18_baih5"]
[ext_resource type="Texture2D" uid="uid://du5psl01pl58u" path="res://assets/Models/boxcar1.normal.png" id="19_pcsar"] [ext_resource type="Texture2D" uid="uid://du5psl01pl58u" path="res://assets/Models/boxcar1.normal.png" id="19_0lpkk"]
[ext_resource type="Texture2D" uid="uid://b4g14i0hso7dj" path="res://assets/Models/boxcar1.doors.png" id="20_g3il3"] [ext_resource type="Texture2D" uid="uid://b4g14i0hso7dj" path="res://assets/Models/boxcar1.doors.png" id="20_jwssi"]
[ext_resource type="Texture2D" uid="uid://sjohow3p4tvl" path="res://assets/Models/boxcar1.doors.rough.png" id="21_2hnuf"] [ext_resource type="Texture2D" uid="uid://sjohow3p4tvl" path="res://assets/Models/boxcar1.doors.rough.png" id="21_60lvy"]
[ext_resource type="Texture2D" uid="uid://bmxhwygo4dpkf" path="res://assets/Models/boxcar1.doors.normal.png" id="22_mggvg"] [ext_resource type="Texture2D" uid="uid://bmxhwygo4dpkf" path="res://assets/Models/boxcar1.doors.normal.png" id="22_i87uc"]
[ext_resource type="Texture2D" uid="uid://dwh7ugcppm4k" path="res://assets/Models/boxcar1.wheel.albedo.png" id="23_7pnb8"] [ext_resource type="Texture2D" uid="uid://dwh7ugcppm4k" path="res://assets/Models/boxcar1.wheel.albedo.png" id="23_pxmjy"]
[ext_resource type="Texture2D" uid="uid://oeyauoofbcdf" path="res://assets/Models/boxcar1.wheel.rough.png" id="24_lfnkg"] [ext_resource type="Texture2D" uid="uid://oeyauoofbcdf" path="res://assets/Models/boxcar1.wheel.rough.png" id="24_l33q5"]
[ext_resource type="Texture2D" uid="uid://5i5urt5i8fjd" path="res://assets/Models/boxcar1.wheel.normal.png" id="25_4mtm3"] [ext_resource type="Texture2D" uid="uid://5i5urt5i8fjd" path="res://assets/Models/boxcar1.wheel.normal.png" id="25_cnce5"]
[ext_resource type="Texture2D" uid="uid://4lve7kqobqx2" path="res://assets/Models/boxcar1.coupler.albedo.png" id="26_22jin"] [ext_resource type="Texture2D" uid="uid://4lve7kqobqx2" path="res://assets/Models/boxcar1.coupler.albedo.png" id="26_7kcoq"]
[ext_resource type="Texture2D" uid="uid://bxek6q1nxy1ks" path="res://assets/Models/boxcar1.coupler.normal.png" id="27_7r3b6"] [ext_resource type="Texture2D" uid="uid://bxek6q1nxy1ks" path="res://assets/Models/boxcar1.coupler.normal.png" id="27_yu7aj"]
[ext_resource type="PackedScene" uid="uid://do6gt53xr2l23" path="res://assets/garbage_bin.tscn" id="28_j817j"] [ext_resource type="PackedScene" uid="uid://do6gt53xr2l23" path="res://assets/garbage_bin.tscn" id="28_xixxr"]
[ext_resource type="PackedScene" uid="uid://wsk4w1xmb3p4" path="res://assets/Audio/train1.tscn" id="29_33hpc"] [ext_resource type="PackedScene" uid="uid://wsk4w1xmb3p4" path="res://assets/Audio/train1.tscn" id="29_o1cv5"]
[ext_resource type="PackedScene" uid="uid://by3n26uvps8tb" path="res://assets/water_tower.tscn" id="30_0x61a"] [ext_resource type="PackedScene" uid="uid://by3n26uvps8tb" path="res://assets/water_tower.tscn" id="30_w5avp"]
[ext_resource type="PackedScene" uid="uid://c0uv33kbndbvy" path="res://assets/trashcan.tscn" id="31_51yru"] [ext_resource type="PackedScene" uid="uid://c0uv33kbndbvy" path="res://assets/trashcan.tscn" id="31_nwtrg"]
[ext_resource type="PackedScene" uid="uid://b204v3il2xrcl" path="res://assets/powerline.tscn" id="32_bf4p2"] [ext_resource type="PackedScene" uid="uid://b204v3il2xrcl" path="res://assets/powerline.tscn" id="32_vqkhf"]
[ext_resource type="PackedScene" uid="uid://cgo4qyul7ix5p" path="res://assets/ladder.tscn" id="33_6doob"] [ext_resource type="PackedScene" uid="uid://cgo4qyul7ix5p" path="res://assets/ladder.tscn" id="33_metle"]
[ext_resource type="PackedScene" uid="uid://cdpxctwwi12j" path="res://assets/ladder_collision_check.tscn" id="34_25rem"] [ext_resource type="PackedScene" uid="uid://cdpxctwwi12j" path="res://assets/ladder_collision_check.tscn" id="34_g2y63"]
[ext_resource type="Script" path="res://scripts/Rat_Control.gd" id="35_i6n0j"] [ext_resource type="Script" path="res://scripts/Rat_Control.gd" id="35_fk52n"]
[ext_resource type="PackedScene" uid="uid://0xs247hfvkml" path="res://assets/rat.tscn" id="36_4154w"] [ext_resource type="PackedScene" uid="uid://0xs247hfvkml" path="res://assets/rat.tscn" id="36_clv86"]
[ext_resource type="PackedScene" uid="uid://6rhnl7vbvvr4" path="res://assets/rat_hole.tscn" id="37_etd8o"] [ext_resource type="PackedScene" uid="uid://6rhnl7vbvvr4" path="res://assets/rat_hole.tscn" id="37_kjvv4"]
[ext_resource type="PackedScene" uid="uid://b3t8fra7evqfb" path="res://assets/Models/building_1.tscn" id="38_hj7r2"] [ext_resource type="PackedScene" uid="uid://b3t8fra7evqfb" path="res://assets/Models/building_1.tscn" id="38_8r1eg"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_nb6x7"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_nb6x7"]
sky_top_color = Color(0.500562, 0.697334, 0.809889, 1) sky_top_color = Color(0.500562, 0.697334, 0.809889, 1)
@@ -108,10 +108,10 @@ data = PackedVector3Array(-116.297, 0, -6.35743, 116.297, 0, -58.3186, 116.297,
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fakg3"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fakg3"]
resource_name = "asphalt" resource_name = "asphalt"
cull_mode = 2 cull_mode = 2
albedo_texture = ExtResource("5_cu3ho") albedo_texture = ExtResource("5_6x2th")
metallic_texture = ExtResource("5_cu3ho") metallic_texture = ExtResource("5_6x2th")
metallic_texture_channel = 2 metallic_texture_channel = 2
roughness_texture = ExtResource("5_cu3ho") roughness_texture = ExtResource("5_6x2th")
roughness_texture_channel = 1 roughness_texture_channel = 1
uv1_scale = Vector3(75, 75, 1) uv1_scale = Vector3(75, 75, 1)
uv1_offset = Vector3(0, -74, 0) uv1_offset = Vector3(0, -74, 0)
@@ -232,9 +232,9 @@ shadow_mesh = SubResource("ArrayMesh_475lt")
resource_name = "Restaurant" resource_name = "Restaurant"
transparency = 4 transparency = 4
cull_mode = 2 cull_mode = 2
albedo_texture = ExtResource("6_qnqv0") albedo_texture = ExtResource("6_ic064")
normal_enabled = true normal_enabled = true
normal_texture = ExtResource("7_vugqb") normal_texture = ExtResource("7_bou4v")
uv1_scale = Vector3(7.6, 7.6, 1) uv1_scale = Vector3(7.6, 7.6, 1)
uv1_offset = Vector3(0, -6.6, 0) uv1_offset = Vector3(0, -6.6, 0)
texture_filter = 2 texture_filter = 2
@@ -339,9 +339,9 @@ data = PackedVector3Array(-7.5, 0.905109, 7.5, -7.5, 2, -7.5, -7.5, 2, 7.5, -7.5
resource_name = "Buildings" resource_name = "Buildings"
transparency = 4 transparency = 4
cull_mode = 2 cull_mode = 2
albedo_texture = ExtResource("6_qnqv0") albedo_texture = ExtResource("6_ic064")
normal_enabled = true normal_enabled = true
normal_texture = ExtResource("7_vugqb") normal_texture = ExtResource("7_bou4v")
uv1_scale = Vector3(21.6, 21.6, 1) uv1_scale = Vector3(21.6, 21.6, 1)
uv1_offset = Vector3(0, -20.6, 0) uv1_offset = Vector3(0, -20.6, 0)
texture_filter = 2 texture_filter = 2
@@ -430,7 +430,7 @@ _data = {
size = Vector3(16.265, 5.07275, 15.3267) size = Vector3(16.265, 5.07275, 15.3267)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kcxpj"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_kcxpj"]
shader = ExtResource("15_10gwk") shader = ExtResource("15_g5ipl")
shader_parameter/overlay = true shader_parameter/overlay = true
shader_parameter/scanlines_opacity = 0.415 shader_parameter/scanlines_opacity = 0.415
shader_parameter/scanlines_width = 0.197 shader_parameter/scanlines_width = 0.197
@@ -456,14 +456,14 @@ shader_parameter/vignette_opacity = 0.0
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qdhxb"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qdhxb"]
resource_name = "boxcar1.main" resource_name = "boxcar1.main"
cull_mode = 2 cull_mode = 2
albedo_texture = ExtResource("17_njmge") albedo_texture = ExtResource("17_1vrnp")
metallic = 0.5 metallic = 0.5
metallic_texture = ExtResource("18_neu5d") metallic_texture = ExtResource("18_baih5")
metallic_texture_channel = 2 metallic_texture_channel = 2
roughness_texture = ExtResource("18_neu5d") roughness_texture = ExtResource("18_baih5")
roughness_texture_channel = 1 roughness_texture_channel = 1
normal_enabled = true normal_enabled = true
normal_texture = ExtResource("19_pcsar") normal_texture = ExtResource("19_0lpkk")
texture_filter = 2 texture_filter = 2
[sub_resource type="ArrayMesh" id="ArrayMesh_pyl4q"] [sub_resource type="ArrayMesh" id="ArrayMesh_pyl4q"]
@@ -503,14 +503,14 @@ shadow_mesh = SubResource("ArrayMesh_pyl4q")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4tdiq"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4tdiq"]
resource_name = "boxcar1.doors" resource_name = "boxcar1.doors"
cull_mode = 2 cull_mode = 2
albedo_texture = ExtResource("20_g3il3") albedo_texture = ExtResource("20_jwssi")
metallic = 0.5 metallic = 0.5
metallic_texture = ExtResource("21_2hnuf") metallic_texture = ExtResource("21_60lvy")
metallic_texture_channel = 2 metallic_texture_channel = 2
roughness_texture = ExtResource("21_2hnuf") roughness_texture = ExtResource("21_60lvy")
roughness_texture_channel = 1 roughness_texture_channel = 1
normal_enabled = true normal_enabled = true
normal_texture = ExtResource("22_mggvg") normal_texture = ExtResource("22_i87uc")
texture_filter = 2 texture_filter = 2
[sub_resource type="ArrayMesh" id="ArrayMesh_jmmcp"] [sub_resource type="ArrayMesh" id="ArrayMesh_jmmcp"]
@@ -644,14 +644,14 @@ shadow_mesh = SubResource("ArrayMesh_apue2")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_icqtr"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_icqtr"]
resource_name = "boxcar1.wheel" resource_name = "boxcar1.wheel"
cull_mode = 2 cull_mode = 2
albedo_texture = ExtResource("23_7pnb8") albedo_texture = ExtResource("23_pxmjy")
metallic = 1.0 metallic = 1.0
metallic_texture = ExtResource("24_lfnkg") metallic_texture = ExtResource("24_l33q5")
metallic_texture_channel = 2 metallic_texture_channel = 2
roughness_texture = ExtResource("24_lfnkg") roughness_texture = ExtResource("24_l33q5")
roughness_texture_channel = 1 roughness_texture_channel = 1
normal_enabled = true normal_enabled = true
normal_texture = ExtResource("25_4mtm3") normal_texture = ExtResource("25_cnce5")
texture_filter = 2 texture_filter = 2
[sub_resource type="ArrayMesh" id="ArrayMesh_ui7ce"] [sub_resource type="ArrayMesh" id="ArrayMesh_ui7ce"]
@@ -1057,11 +1057,11 @@ shadow_mesh = SubResource("ArrayMesh_erm8w")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bfuxv"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bfuxv"]
resource_name = "boxcar1.coupler" resource_name = "boxcar1.coupler"
cull_mode = 2 cull_mode = 2
albedo_texture = ExtResource("26_22jin") albedo_texture = ExtResource("26_7kcoq")
metallic = 1.0 metallic = 1.0
normal_enabled = true normal_enabled = true
normal_scale = 0.5 normal_scale = 0.5
normal_texture = ExtResource("27_7r3b6") normal_texture = ExtResource("27_yu7aj")
texture_filter = 2 texture_filter = 2
[sub_resource type="ArrayMesh" id="ArrayMesh_2yypg"] [sub_resource type="ArrayMesh" id="ArrayMesh_2yypg"]
@@ -1157,14 +1157,18 @@ _data = {
"trainmove": SubResource("Animation_6nfej") "trainmove": SubResource("Animation_6nfej")
} }
[node name="Test Level 2" type="Node3D"] [node name="Test Level 2" type="Node3D" node_paths=PackedStringArray("player")]
script = ExtResource("1_tqbvs") script = ExtResource("1_wls0y")
player = NodePath("Player")
money = 10 money = 10
gun_1 = ExtResource("2_fu1eu") start_health = 10
gun_2 = ExtResource("2_ayfr5") gun_1 = ExtResource("2_8r4nh")
gun_2 = ExtResource("3_08b0x")
health_drop_enabled = false
[node name="Player" parent="." instance=ExtResource("4_4bx26")] [node name="Player" parent="." instance=ExtResource("4_1cxxb")]
transform = Transform3D(-0.866025, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866025, -16.0295, 1.4435, 12.1166) transform = Transform3D(-0.866025, 0, -0.5, 0, 1, 0, 0.5, 0, -0.866025, -16.0295, 1.4435, 12.1166)
JUMP_VELOCITY = 6
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.420794, 0.292511, -0.858703, -0.23587, 0.949309, 0.207791, 0.875956, 0.115105, 0.468458, 0, 0, 0) transform = Transform3D(0.420794, 0.292511, -0.858703, -0.23587, 0.949309, 0.207791, 0.875956, 0.115105, 0.468458, 0, 0, 0)
@@ -1265,18 +1269,18 @@ transform = Transform3D(1, -1.46934e-11, -1.17288e-08, 1.4694e-11, 1, 4.69154e-0
size = Vector3(270.04, 47.3098, 123.187) size = Vector3(270.04, 47.3098, 123.187)
data = SubResource("VoxelGIData_dnr4q") data = SubResource("VoxelGIData_dnr4q")
[node name="JumpPlatform" parent="." instance=ExtResource("8_p70qu")] [node name="JumpPlatform" parent="." instance=ExtResource("8_f4nmn")]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -16.6413, -0.228642, 25.8801) transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -16.6413, -0.228642, 25.8801)
jump_amount = 30 jump_amount = 30
[node name="JumpPlatform2" parent="." instance=ExtResource("8_p70qu")] [node name="JumpPlatform2" parent="." instance=ExtResource("8_f4nmn")]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -57.3605, -0.228642, 15.9129) transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -57.3605, -0.228642, 15.9129)
jump_amount = 30 jump_amount = 30
[node name="cannon" parent="." instance=ExtResource("9_3s52v")] [node name="cannon" parent="." instance=ExtResource("9_5ta35")]
transform = Transform3D(0.408804, -0.265126, -0.112196, 0.112468, 0.326453, -0.361634, 0.26501, 0.270438, 0.326548, 35.9635, 15.39, 5.25797) transform = Transform3D(0.408804, -0.265126, -0.112196, 0.112468, 0.326453, -0.361634, 0.26501, 0.270438, 0.326548, 35.9635, 15.39, 5.25797)
[node name="cannon2" parent="." instance=ExtResource("9_3s52v")] [node name="cannon2" parent="." instance=ExtResource("9_5ta35")]
transform = Transform3D(-0.325539, -0.349499, -0.1479, 5.67129e-09, 0.194859, -0.460467, 0.379505, -0.2998, -0.126869, 41.63, 0.912825, 33.9884) transform = Transform3D(-0.325539, -0.349499, -0.1479, 5.67129e-09, 0.194859, -0.460467, 0.379505, -0.2998, -0.126869, 41.63, 0.912825, 33.9884)
[node name="AudioChangers" type="Node3D" parent="."] [node name="AudioChangers" type="Node3D" parent="."]
@@ -1287,50 +1291,50 @@ transform = Transform3D(-0.325539, -0.349499, -0.1479, 5.67129e-09, 0.194859, -0
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.2401, 1.78784, 45.3469) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.2401, 1.78784, 45.3469)
shape = SubResource("BoxShape3D_82n8k") shape = SubResource("BoxShape3D_82n8k")
[node name="Boombox" parent="." instance=ExtResource("10_qt0hx")] [node name="Boombox" parent="." instance=ExtResource("10_mwwc8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 0.0787388, 9) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8, 0.0787388, 9)
[node name="TrainSound" type="AudioStreamPlayer3D" parent="."] [node name="TrainSound" type="AudioStreamPlayer3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -63.7777, 1.66788, 14.9627) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -63.7777, 1.66788, 14.9627)
stream = ExtResource("11_7i6dp") stream = ExtResource("11_26a3n")
volume_db = 3.0 volume_db = 3.0
unit_size = 20.0 unit_size = 20.0
autoplay = true autoplay = true
[node name="Crate1" parent="." instance=ExtResource("12_3o4sy")] [node name="Crate1" parent="." instance=ExtResource("12_6tji4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11, 1.51906, 11) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11, 1.51906, 11)
mass = 10.0 mass = 10.0
[node name="Crate2" parent="." instance=ExtResource("12_3o4sy")] [node name="Crate2" parent="." instance=ExtResource("12_6tji4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.5842, 1.51906, 10.4208) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.5842, 1.51906, 10.4208)
mass = 10.0 mass = 10.0
[node name="Crate3" parent="." instance=ExtResource("12_3o4sy")] [node name="Crate3" parent="." instance=ExtResource("12_6tji4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.5641, 1.51906, 11.3001) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.5641, 1.51906, 11.3001)
mass = 10.0 mass = 10.0
[node name="bottle1" parent="." instance=ExtResource("13_7gwv7")] [node name="bottle1" parent="." instance=ExtResource("13_vqdl4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.88146, 0.608878, 12.1473) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.88146, 0.608878, 12.1473)
[node name="bottle2" parent="." instance=ExtResource("13_7gwv7")] [node name="bottle2" parent="." instance=ExtResource("13_vqdl4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.36049, 0.608878, 12.1525) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.36049, 0.608878, 12.1525)
[node name="bottle3" parent="." instance=ExtResource("13_7gwv7")] [node name="bottle3" parent="." instance=ExtResource("13_vqdl4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.64453, 0.608878, 11.7534) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.64453, 0.608878, 11.7534)
[node name="bottle4" parent="." instance=ExtResource("13_7gwv7")] [node name="bottle4" parent="." instance=ExtResource("13_vqdl4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.60098, 1.79509, 12.0165) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.60098, 1.79509, 12.0165)
[node name="bottle5" parent="." instance=ExtResource("13_7gwv7")] [node name="bottle5" parent="." instance=ExtResource("13_vqdl4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.60763, 1.16757, 11.4412) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.60763, 1.16757, 11.4412)
[node name="bottle6" parent="." instance=ExtResource("13_7gwv7")] [node name="bottle6" parent="." instance=ExtResource("13_vqdl4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.69462, 1.16757, 11.2398) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.69462, 1.16757, 11.2398)
[node name="vendingmahcine" parent="." instance=ExtResource("14_22shq")] [node name="vendingmahcine" parent="." instance=ExtResource("14_lsabb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.992526, 41.9909, -2.56906) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.992526, 41.9909, -2.56906)
[node name="vendingmahcine2" parent="." instance=ExtResource("14_22shq")] [node name="vendingmahcine2" parent="." instance=ExtResource("14_lsabb")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12.6965, 0.0810432, 7.48461) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12.6965, 0.0810432, 7.48461)
[node name="ColorRect" type="ColorRect" parent="."] [node name="ColorRect" type="ColorRect" parent="."]
@@ -1343,7 +1347,7 @@ mouse_filter = 2
[node name="Decorations" type="Node" parent="."] [node name="Decorations" type="Node" parent="."]
[node name="boxcar1" parent="Decorations" instance=ExtResource("16_4k42u")] [node name="boxcar1" parent="Decorations" instance=ExtResource("16_rag5o")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -31.5735, 2.35144, 61.7909) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -31.5735, 2.35144, 61.7909)
[node name="boxcar2" type="AnimatableBody3D" parent="Decorations"] [node name="boxcar2" type="AnimatableBody3D" parent="Decorations"]
@@ -1473,16 +1477,16 @@ shape = SubResource("BoxShape3D_fl1u5")
[node name="Boxcar1" type="Node3D" parent="Decorations/boxcar2"] [node name="Boxcar1" type="Node3D" parent="Decorations/boxcar2"]
[node name="GarbageBin" parent="Decorations" instance=ExtResource("28_j817j")] [node name="GarbageBin" parent="Decorations" instance=ExtResource("28_xixxr")]
transform = Transform3D(-0.999086, 0, -0.0427475, 0, 1, 0, 0.0427475, 0, -0.999086, 29.4975, 0.116186, 48.908) transform = Transform3D(-0.999086, 0, -0.0427475, 0, 1, 0, 0.0427475, 0, -0.999086, 29.4975, 0.116186, 48.908)
[node name="GarbageBin2" parent="Decorations" instance=ExtResource("28_j817j")] [node name="GarbageBin2" parent="Decorations" instance=ExtResource("28_xixxr")]
transform = Transform3D(-0.999086, 0, -0.0427475, 0, 1, 0, 0.0427475, 0, -0.999086, -42.8899, 0.146637, 34.2163) transform = Transform3D(-0.999086, 0, -0.0427475, 0, 1, 0, 0.0427475, 0, -0.999086, -42.8899, 0.146637, 34.2163)
[node name="GarbageBin3" parent="Decorations" instance=ExtResource("28_j817j")] [node name="GarbageBin3" parent="Decorations" instance=ExtResource("28_xixxr")]
transform = Transform3D(-0.639359, 0, -0.768909, 0, 1, 0, 0.768909, 0, -0.639359, -11.0503, 0.254058, 66.213) transform = Transform3D(-0.639359, 0, -0.768909, 0, 1, 0, 0.768909, 0, -0.639359, -11.0503, 0.254058, 66.213)
[node name="Train2" parent="Decorations" instance=ExtResource("29_33hpc")] [node name="Train2" parent="Decorations" instance=ExtResource("29_o1cv5")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -69.1904, 1.12627, 45.0474) transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -69.1904, 1.12627, 45.0474)
[node name="AnimationPlayer" type="AnimationPlayer" parent="Decorations"] [node name="AnimationPlayer" type="AnimationPlayer" parent="Decorations"]
@@ -1492,64 +1496,73 @@ libraries = {
} }
autoplay = "trainmove" autoplay = "trainmove"
[node name="Water Tower" parent="Decorations" instance=ExtResource("30_0x61a")] [node name="Water Tower" parent="Decorations" instance=ExtResource("30_w5avp")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.5814, 0.043795, 59.857) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.5814, 0.043795, 59.857)
[node name="Trashcan" parent="Decorations" instance=ExtResource("31_51yru")] [node name="Trashcan" parent="Decorations" instance=ExtResource("31_nwtrg")]
transform = Transform3D(1.2, 0, 0, 0, 1.2, 0, 0, 0, 1.2, -23.6616, 0.910513, 29.1895) transform = Transform3D(1.2, 0, 0, 0, 1.2, 0, 0, 0, 1.2, -23.6616, 0.910513, 29.1895)
[node name="Powerline" parent="Decorations" instance=ExtResource("32_bf4p2")] [node name="Powerline" parent="Decorations" instance=ExtResource("32_vqkhf")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -51, 0, 7) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -51, 0, 7)
[node name="Powerline2" parent="Decorations" instance=ExtResource("32_bf4p2")] [node name="Powerline2" parent="Decorations" instance=ExtResource("32_vqkhf")]
transform = Transform3D(-0.215332, 0, -0.976541, 0, 1, 0, 0.976541, 0, -0.215332, -27.7992, 0, 10.004) transform = Transform3D(-0.215332, 0, -0.976541, 0, 1, 0, 0.976541, 0, -0.215332, -27.7992, 0, 10.004)
[node name="Powerline3" parent="Decorations" instance=ExtResource("32_bf4p2")] [node name="Powerline3" parent="Decorations" instance=ExtResource("32_vqkhf")]
transform = Transform3D(-0.215332, 0, -0.976541, 0, 1, 0, 0.976541, 0, -0.215332, 10.105, 0, 35.9476) transform = Transform3D(-0.215332, 0, -0.976541, 0, 1, 0, 0.976541, 0, -0.215332, 10.105, 0, 35.9476)
[node name="Ladder" parent="." instance=ExtResource("33_6doob")] [node name="Ladder" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -56.263, 0.0535244, 52.2153) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -56.263, 0.0535244, 52.2153)
[node name="Ladder2" parent="." instance=ExtResource("33_6doob")] [node name="Ladder2" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -56.263, 3.9975, 52.2153) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -56.263, 3.9975, 52.2153)
[node name="LadderCollisionCheck" parent="." instance=ExtResource("34_25rem")] [node name="LadderCollisionCheck" parent="." instance=ExtResource("34_g2y63")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -56.2309, 0.433904, 52.2598) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -56.2309, 0.433904, 52.2598)
[node name="Ladder6" parent="." instance=ExtResource("33_6doob")] [node name="Ladder6" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 0.0535245, 63.691) transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 0.0535245, 63.691)
[node name="Ladder7" parent="." instance=ExtResource("33_6doob")] [node name="Ladder7" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 3.9975, 63.691) transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 3.9975, 63.691)
[node name="Ladder8" parent="." instance=ExtResource("33_6doob")] [node name="Ladder8" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 7.94742, 63.691) transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 7.94742, 63.691)
[node name="Ladder9" parent="." instance=ExtResource("33_6doob")] [node name="Ladder9" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 11.8812, 63.691) transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 11.8812, 63.691)
[node name="Ladder10" parent="." instance=ExtResource("33_6doob")] [node name="Ladder10" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 15.8115, 63.691) transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 15.8115, 63.691)
[node name="Ladder11" parent="." instance=ExtResource("33_6doob")] [node name="Ladder11" parent="." instance=ExtResource("33_metle")]
transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 19.7579, 63.691) transform = Transform3D(0.932771, 0, 0.360469, 0, 1, 0, -0.360469, 0, 0.932771, -12.336, 19.7579, 63.691)
[node name="LadderCollisionCheck2" parent="." instance=ExtResource("34_25rem")] [node name="LadderCollisionCheck2" parent="." instance=ExtResource("34_g2y63")]
transform = Transform3D(0.932771, 0, 0.360469, 0, 3.032, 0, -0.360469, 0, 0.932771, -12.2379, 0.433904, 64.0249) transform = Transform3D(0.932771, 0, 0.360469, 0, 3.032, 0, -0.360469, 0, 0.932771, -12.2379, 0.433904, 64.0249)
[node name="RATS" type="Node3D" parent="."] [node name="RATS" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.06322, 0.386584, 38.0795) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.06322, 0.386584, 38.0795)
script = ExtResource("35_i6n0j") script = ExtResource("35_fk52n")
rat = ExtResource("36_4154w") rat = ExtResource("36_clv86")
[node name="RatHole" parent="RATS" instance=ExtResource("37_etd8o")] [node name="RatHole" parent="RATS" instance=ExtResource("37_kjvv4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0417337, -0.133987) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0417337, -0.133987)
[node name="RatHole2" parent="RATS" instance=ExtResource("37_etd8o")] [node name="RatHole2" parent="RATS" instance=ExtResource("37_kjvv4")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -25.9553, 0.0330879, -30.573) transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -25.9553, 0.0330879, -30.573)
[node name="RatHole3" parent="RATS" instance=ExtResource("37_etd8o")] [node name="RatHole3" parent="RATS" instance=ExtResource("37_kjvv4")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -52.7229, 0.0330879, 14.1093) transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -52.7229, 0.0330879, 14.1093)
[node name="Building1" parent="." instance=ExtResource("38_hj7r2")] [node name="Building1" parent="." instance=ExtResource("38_8r1eg")]
transform = Transform3D(1.4, 0, 0, 0, 1.4, 0, 0, 0, 1.4, 30.5112, 0.0535234, 5.34559) transform = Transform3D(1.4, 0, 0, 0, 1.4, 0, 0, 0, 1.4, 30.5112, 0.0535234, 5.34559)
[node name="Building2" parent="." instance=ExtResource("38_8r1eg")]
transform = Transform3D(1.4, 0, 0, 0, 1.4, 0, 0, 0, 1.4, 40.0841, 0.0535234, 5.34559)
[node name="Building3" parent="." instance=ExtResource("38_8r1eg")]
transform = Transform3D(1.4, 0, 0, 0, 1.4, 0, 0, 0, 1.4, 49.64, 0.0535234, 5.34559)
[node name="Building4" parent="." instance=ExtResource("38_8r1eg")]
transform = Transform3D(1.4, 0, 0, 0, 1.4, 0, 0, 0, 1.4, 59.2228, 0.0535234, 5.34559)

View File

@@ -7,6 +7,8 @@ var gravity = 9.8
var is_climbing = false var is_climbing = false
var ladder_center var ladder_center
var default_gravity = gravity var default_gravity = gravity
var moving_fast = false
var moving_fast_top_speed = 0.0
var mouse_input : Vector2 var mouse_input : Vector2
var rng = RandomNumberGenerator.new() var rng = RandomNumberGenerator.new()
@@ -77,6 +79,7 @@ var pickupmsg
@onready var world_environment = $"../WorldEnvironment" @onready var world_environment = $"../WorldEnvironment"
@onready var pickup_sound = $Audio/PickupSound @onready var pickup_sound = $Audio/PickupSound
@onready var ear_wind = $Audio/EarWind @onready var ear_wind = $Audio/EarWind
@onready var land_sound: AudioStreamPlayer = $Audio/LandSound
@onready var hurt_audio = $Audio/Hurt @onready var hurt_audio = $Audio/Hurt
@onready var health_indicator = $HealthIndicator @onready var health_indicator = $HealthIndicator
@onready var ammo_counter = $Head/Camera3D/AmmoCounter @onready var ammo_counter = $Head/Camera3D/AmmoCounter
@@ -169,8 +172,31 @@ func _physics_process(delta):
var health_opacity = 1.5 - level_control.health / level_control.start_health var health_opacity = 1.5 - level_control.health / level_control.start_health
health_indicator.color = lerp(Color(0.471, 0, 0, 0), Color(0.471, 0, 0, .25),health_opacity) health_indicator.color = lerp(Color(0.471, 0, 0, 0), Color(0.471, 0, 0, .25),health_opacity)
# Land sound # Moving Fast Sound
#initiate fast movement
if velocity.y >= JUMP_VELOCITY and !moving_fast:
moving_fast = true
ear_wind.play()
#change sounds with speed
if moving_fast:
var wind_volume = clamp( velocity.length() - 20 ,-20,0)
ear_wind.volume_db = wind_volume
#reset at apex
if abs(velocity.y) < 0:
moving_fast_top_speed = 0.0
#cache fastest speed
if abs(velocity.y) > moving_fast_top_speed:
moving_fast_top_speed = abs(velocity.y)
print("TOP SPEED = " + str(moving_fast_top_speed))
#Land Sound
if velocity.y < .1 and self.is_on_floor() and moving_fast == true:
print("LAND SOUND")
var land_volume = clamp( moving_fast_top_speed - 20 ,-20,0)
land_sound.volume_db = land_volume
land_sound.play()
ear_wind.stop()
moving_fast_top_speed = 0.0
moving_fast = false
# Game Speed # Game Speed
if Input.is_action_pressed("slow_down") and remaining_stamina >0: if Input.is_action_pressed("slow_down") and remaining_stamina >0:
@@ -233,9 +259,10 @@ func _physics_process(delta):
#interact button #interact button
if Input.is_action_just_pressed("interact"): if Input.is_action_just_pressed("interact"):
if interact_ray.is_colliding(): # and !interact_ray.get_collider().is_in_group("interact"): if interact_ray.is_colliding():
var body = interact_ray.get_collider() if interact_ray.get_collider().is_in_group("interact"):
body.get_parent().interact() var body = interact_ray.get_collider()
body.get_parent().interact()
#quit game and eventually go to menu #quit game and eventually go to menu

File diff suppressed because one or more lines are too long