diff --git a/godot/Level/Island.tscn b/godot/Level/Island.tscn index e59fbff..61ecafe 100644 --- a/godot/Level/Island.tscn +++ b/godot/Level/Island.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=34 format=3 uid="uid://3d51hjh2st8a"] +[gd_scene load_steps=35 format=3 uid="uid://3d51hjh2st8a"] [ext_resource type="PackedScene" uid="uid://d2d4uv7o5gx5p" path="res://Level/World/screen_shader.tscn" id="1_huyen"] [ext_resource type="PackedScene" uid="uid://d3ccrfjpg4hbv" path="res://Models/palm_curved.tscn" id="3_bth2b"] @@ -29,6 +29,7 @@ [ext_resource type="PackedScene" uid="uid://g4gmc0pwlak1" path="res://Models/buildings/fence.tscn" id="28_prydb"] [ext_resource type="PackedScene" uid="uid://ckbba1bs71tl" path="res://crate.tscn" id="28_x0lrj"] [ext_resource type="PackedScene" path="res://spawner.tscn" id="29_etvc6"] +[ext_resource type="PackedScene" uid="uid://e0s4phx2jiit" path="res://cultist.tscn" id="30_8gvtc"] [sub_resource type="Animation" id="Animation_jpnyu"] resource_name = "waves" @@ -497,6 +498,9 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.41845, 9.26863, -2.62281) [node name="Node3D2" type="Node3D" parent="."] +[node name="Cultist" parent="." instance=ExtResource("30_8gvtc")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.10096, 2.40767, -1.07752) + [connection signal="finished" from="Music" to="Music" method="_on_finished"] [connection signal="timeout" from="Music/Transition" to="Music" method="_on_transition_timer_timeout"] [connection signal="timeout" from="Music/Tween" to="Music" method="_on_tween_timer_timeout"] diff --git a/godot/MeshInstance3D.gd b/godot/MeshInstance3D.gd new file mode 100644 index 0000000..fc40428 --- /dev/null +++ b/godot/MeshInstance3D.gd @@ -0,0 +1,4 @@ +extends MeshInstance3D + +func _process(_delta): + visible = Global.cheating diff --git a/godot/UI/PauseMenu.gd b/godot/UI/PauseMenu.gd index a68f78c..f32ca5c 100644 --- a/godot/UI/PauseMenu.gd +++ b/godot/UI/PauseMenu.gd @@ -30,7 +30,8 @@ func quit(): func _on_kill_pressed(): - pass # Replace with function body. + Global.cheating = true + toggle() diff --git a/godot/cultist.tscn b/godot/cultist.tscn index 5edde08..e6a096d 100644 --- a/godot/cultist.tscn +++ b/godot/cultist.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=7 format=3 uid="uid://e0s4phx2jiit"] +[gd_scene load_steps=10 format=3 uid="uid://e0s4phx2jiit"] [ext_resource type="Script" path="res://cultist.gd" id="1_k6djk"] [ext_resource type="PackedScene" uid="uid://c3q6fva1c1baa" path="res://Models/slime.tscn" id="2_004fn"] [ext_resource type="AudioStream" uid="uid://cxadu5w3jwv0b" path="res://Sounds/evilslime.ogg" id="3_novm4"] +[ext_resource type="Script" path="res://MeshInstance3D.gd" id="4_trs5a"] [sub_resource type="SphereShape3D" id="SphereShape3D_rypky"] radius = 2.5 @@ -13,6 +14,11 @@ radius = 0.055 [sub_resource type="SphereShape3D" id="SphereShape3D_bmc5i"] radius = 0.05 +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y5n1c"] +albedo_color = Color(1, 0, 1, 1) + +[sub_resource type="SphereMesh" id="SphereMesh_75ex5"] + [node name="Cultist" type="CharacterBody3D"] script = ExtResource("1_k6djk") @@ -38,5 +44,11 @@ shape = SubResource("SphereShape3D_bmc5i") [node name="evilslime" type="AudioStreamPlayer3D" parent="."] stream = ExtResource("3_novm4") +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +transform = Transform3D(0.05, 0, 0, 0, 0.05, 0, 0, 0, 0.05, 0, 0.181789, 0) +material_override = SubResource("StandardMaterial3D_y5n1c") +mesh = SubResource("SphereMesh_75ex5") +script = ExtResource("4_trs5a") + [connection signal="body_entered" from="TargetRadius" to="." method="_on_target_radius_body_entered"] [connection signal="body_entered" from="CollisionDetection" to="." method="_on_collision_detection_body_entered"]