From 5a5da49d6ba323ea103501b9005d7ff27c02fa65 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 23 Dec 2024 12:51:51 -0500 Subject: [PATCH 1/2] Removed holerim collider --- scenes/level_pool.tscn | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/scenes/level_pool.tscn b/scenes/level_pool.tscn index f2aca1c..61303e8 100644 --- a/scenes/level_pool.tscn +++ b/scenes/level_pool.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=29 format=4 uid="uid://bbqug1s083mdi"] +[gd_scene load_steps=28 format=4 uid="uid://bbqug1s083mdi"] [ext_resource type="PackedScene" uid="uid://ci2uamlnv8swy" path="res://assets/maps/levelpool.blend" id="1_cpckw"] [ext_resource type="PackedScene" uid="uid://cy86jyiy6skvk" path="res://scenes/player.tscn" id="2_eggmh"] @@ -79,9 +79,6 @@ _data = { "open": SubResource("Animation_lexij") } -[sub_resource type="BoxShape3D" id="BoxShape3D_epqy0"] -size = Vector3(0.3, 0.5, 2.3) - [sub_resource type="BoxShape3D" id="BoxShape3D_dsbsn"] size = Vector3(2, 2, 2) @@ -168,24 +165,6 @@ libraries = { "": SubResource("AnimationLibrary_prvv0") } -[node name="HoleRim" type="StaticBody3D" parent="."] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="HoleRim"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.85, 0.25, -4.85) -shape = SubResource("BoxShape3D_epqy0") - -[node name="CollisionShape3D2" type="CollisionShape3D" parent="HoleRim"] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.15, 0.25, -5.15) -shape = SubResource("BoxShape3D_epqy0") - -[node name="CollisionShape3D3" type="CollisionShape3D" parent="HoleRim"] -transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 5.15, 0.25, -3.85) -shape = SubResource("BoxShape3D_epqy0") - -[node name="CollisionShape3D4" type="CollisionShape3D" parent="HoleRim"] -transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 4.85, 0.25, -6.15) -shape = SubResource("BoxShape3D_epqy0") - [node name="WinBox" type="Area3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, -1, -5) script = ExtResource("7_oxf41") From 92a6d558cc324155fff1b4c21015df12affba0a8 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 23 Dec 2024 13:08:53 -0500 Subject: [PATCH 2/2] Fixed warns --- components/door_component.gd | 4 ++-- scenes/kreb.gd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/door_component.gd b/components/door_component.gd index d1428f1..47bb26c 100644 --- a/components/door_component.gd +++ b/components/door_component.gd @@ -60,7 +60,7 @@ func _toggle_open(): close() -func _on_anim_finished(anim_name): +func _on_anim_finished(_anim_name): _open = !_open @@ -92,7 +92,7 @@ func activate(should_open: bool): close() -func interact(other): +func interact(_other): if not interactable: return diff --git a/scenes/kreb.gd b/scenes/kreb.gd index f8f6092..950b19b 100644 --- a/scenes/kreb.gd +++ b/scenes/kreb.gd @@ -7,7 +7,7 @@ func _ready() -> void: # Called every frame. 'delta' is the elapsed time since the previous frame. -func _process(delta: float) -> void: +func _process(_delta: float) -> void: var closest: Node3D var least_dist = INF for p: Node3D in get_tree().get_nodes_in_group('players'):