diff --git a/Level_Core.tscn b/Level_Core.tscn index 3c21b82..d6def9f 100644 --- a/Level_Core.tscn +++ b/Level_Core.tscn @@ -1,9 +1,11 @@ -[gd_scene load_steps=10 format=3 uid="uid://bn20cqfwvm2oe"] +[gd_scene load_steps=12 format=3 uid="uid://bn20cqfwvm2oe"] [ext_resource type="Script" uid="uid://wr38f8q1w7yq" path="res://pause_menu.gd" id="1_fwt2i"] [ext_resource type="PackedScene" uid="uid://bs6yq6gy7k2sb" path="res://player.tscn" id="1_lsi31"] +[ext_resource type="Shape3D" uid="uid://30um6cm5oj6q" path="res://wall_cwt.tres" id="2_7sds5"] [ext_resource type="FontFile" uid="uid://rswq6vrwr2nx" path="res://InstrumentSans-VariableFont_wdth,wght.ttf" id="2_fq2vn"] [ext_resource type="PackedScene" uid="uid://daoyebc0vm7sd" path="res://pause_menu.tscn" id="3_i8tni"] +[ext_resource type="Shape3D" uid="uid://ck3ryefc358gp" path="res://wall_ncwt.tres" id="3_n0qnv"] [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_rv2mx"] sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1) @@ -18,11 +20,11 @@ sky = SubResource("Sky_lsi31") tonemap_mode = 2 glow_enabled = true -[sub_resource type="PlaneMesh" id="PlaneMesh_rv2mx"] -size = Vector2(10, 10) +[sub_resource type="ShaderMaterial" id="ShaderMaterial_fwt2i"] -[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_lsi31"] -data = PackedVector3Array(5, 0, 5, -5, 0, 5, 5, 0, -5, -5, 0, 5, -5, 0, -5, 5, 0, -5) +[sub_resource type="PlaneMesh" id="PlaneMesh_rv2mx"] +material = SubResource("ShaderMaterial_fwt2i") +size = Vector2(10, 10) [node name="LevelCore" type="Node3D"] script = ExtResource("1_fwt2i") @@ -34,35 +36,46 @@ environment = SubResource("Environment_fq2vn") transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0) shadow_enabled = true -[node name="MeshInstance3D2" type="MeshInstance3D" parent="."] -transform = Transform3D(1, 8.74228e-08, 0, -8.74228e-08, 1, 0, 0, 0, -2, 0, 0, -10) -mesh = SubResource("PlaneMesh_rv2mx") -skeleton = NodePath("../MeshInstance3D") - -[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D2"] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D2/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_lsi31") - -[node name="MeshInstance3D6" type="MeshInstance3D" parent="."] -transform = Transform3D(1, 8.74228e-08, 0, -8.74228e-08, 1, 0, 0, 0, -2, 10.0031, 0, -10) -mesh = SubResource("PlaneMesh_rv2mx") -skeleton = NodePath("../MeshInstance3D") - -[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D6"] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D6/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_lsi31") - [node name="MeshInstance3D5" type="MeshInstance3D" parent="."] -transform = Transform3D(1, -1.31134e-07, 4.37114e-08, -4.37114e-08, 4.37114e-08, 1, -1.31134e-07, -1, 4.37114e-08, 4.76837e-07, 5, 5) +physics_interpolation_mode = 1 +transform = Transform3D(1, -1.31134e-07, 4.37114e-08, -4.37114e-08, 4.37114e-08, 1, -1.31134e-07, -1, 4.37114e-08, 0, 5, 5) mesh = SubResource("PlaneMesh_rv2mx") skeleton = NodePath("../MeshInstance3D3") [node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D5"] [node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D5/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_lsi31") +shape = ExtResource("2_7sds5") + +[node name="MeshInstance3D7" type="MeshInstance3D" parent="."] +transform = Transform3D(-4.37114e-08, 0, 4, 0, 1, 0, -1, 0, -1.74846e-07, -5, 0, 10) +mesh = SubResource("PlaneMesh_rv2mx") +skeleton = NodePath("../MeshInstance3D") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D7"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D7/StaticBody3D"] +shape = ExtResource("3_n0qnv") + +[node name="MeshInstance3D6" type="MeshInstance3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 2, 10, 0, -5) +mesh = SubResource("PlaneMesh_rv2mx") +skeleton = NodePath("../MeshInstance3D") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D6"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D6/StaticBody3D"] +shape = ExtResource("3_n0qnv") + +[node name="MeshInstance3D2" type="MeshInstance3D" parent="."] +transform = Transform3D(1, -2.2215e-28, 0, 0, 1, 0, 0, 0, 1, 0, 0, -10) +mesh = SubResource("PlaneMesh_rv2mx") +skeleton = NodePath("../MeshInstance3D") + +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D2"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D2/StaticBody3D"] +shape = ExtResource("3_n0qnv") [node name="MeshInstance3D4" type="MeshInstance3D" parent="."] transform = Transform3D(4.37114e-08, 1, -8.74228e-08, 1, -4.37114e-08, 0, -3.82137e-15, -8.74228e-08, -1, -5, 5, 0) @@ -72,7 +85,7 @@ skeleton = NodePath("../MeshInstance3D3") [node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D4"] [node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D4/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_lsi31") +shape = ExtResource("3_n0qnv") [node name="MeshInstance3D3" type="MeshInstance3D" parent="."] transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 5, 5, 0) @@ -82,7 +95,7 @@ skeleton = NodePath("../MeshInstance3D") [node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D3"] [node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D3/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_lsi31") +shape = ExtResource("2_7sds5") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("PlaneMesh_rv2mx") @@ -90,7 +103,7 @@ mesh = SubResource("PlaneMesh_rv2mx") [node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] [node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] -shape = SubResource("ConcavePolygonShape3D_lsi31") +shape = ExtResource("3_n0qnv") [node name="Player" parent="." instance=ExtResource("1_lsi31")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 1.3736) @@ -108,6 +121,20 @@ Drücke S um dich rückwarts zu bewegen Drücke D um nach rechts zu bewegen" font = ExtResource("2_fq2vn") +[node name="Label3D3" type="Label3D" parent="Label3D3"] +transform = Transform3D(-0.205842, 0.104382, 0.973003, 0.398845, 0.916911, -0.013987, -0.893617, 0.385198, -0.230371, 5.16488, 0.205381, -0.706186) +offset = Vector2(1, 0) +modulate = Color(0.943031, 0.787658, 0.994854, 1) +outline_modulate = Color(0.00803253, 9.36218e-06, 0.0382829, 1) +text = "The wall that used to be here now disappears, +at least if you look at it from a different perspective. +You can even try walking through it! +- +Die Wand, die vorhin hier stand, ist nicht mehr hier. +Zumindest, wenn man es aus einer anderer Sicht anschaut. +Du kannst sogar mal versuchen, durch zu laufen" +font = ExtResource("2_fq2vn") + [node name="Label3D4" type="Label3D" parent="."] transform = Transform3D(0.840144, -0.185681, 0.509588, -0.0870775, 0.881203, 0.464649, -0.535327, -0.434746, 0.724169, -1.7922, 0.550958, 0.267265) offset = Vector2(1, 0) diff --git a/pause_menu.tscn b/pause_menu.tscn index 73fc1d2..bc65e1d 100644 --- a/pause_menu.tscn +++ b/pause_menu.tscn @@ -1,6 +1,21 @@ -[gd_scene load_steps=2 format=3 uid="uid://daoyebc0vm7sd"] +[gd_scene load_steps=6 format=3 uid="uid://daoyebc0vm7sd"] [ext_resource type="Script" uid="uid://4v86257e5prv" path="res://pause_menu_itself.gd" id="1_hdmo1"] +[ext_resource type="FontFile" uid="uid://rswq6vrwr2nx" path="res://InstrumentSans-VariableFont_wdth,wght.ttf" id="2_05uyy"] +[ext_resource type="FontFile" uid="uid://bulwhh7xjiip0" path="res://InstrumentSerif-Regular.ttf" id="3_p81d2"] + +[sub_resource type="LabelSettings" id="LabelSettings_2nc7s"] +font = ExtResource("2_05uyy") +font_size = 25 +font_color = Color(0.941176, 0.788235, 0.996078, 1) +outline_size = 5 +outline_color = Color(0, 0, 0, 1) + +[sub_resource type="LabelSettings" id="LabelSettings_d3xb4"] +font = ExtResource("3_p81d2") +font_size = 120 +outline_size = 25 +outline_color = Color(0, 0, 0, 1) [node name="PauseMenu" type="Control"] layout_mode = 3 @@ -27,6 +42,28 @@ text = "resume game" layout_mode = 2 text = "quit to main menu" +[node name="Label" type="Label" parent="."] +layout_mode = 0 +offset_left = 390.0 +offset_top = 392.0 +offset_right = 859.0 +offset_bottom = 459.0 +text = "press SHIFT+ENTER to unlock the mouse +press SHIFT+G to capture the mouse" +label_settings = SubResource("LabelSettings_2nc7s") +horizontal_alignment = 1 + +[node name="Label2" type="Label" parent="."] +layout_mode = 0 +offset_left = 414.0 +offset_top = 232.0 +offset_right = 837.0 +offset_bottom = 397.0 +text = "paused" +label_settings = SubResource("LabelSettings_d3xb4") +horizontal_alignment = 1 +vertical_alignment = 1 + [connection signal="pressed" from="MarginContainer/VBoxContainer/ResumeButton" to="." method="_on_resume_button_pressed"] [connection signal="pressed" from="MarginContainer/VBoxContainer/ResumeButton" to="." method="_on_button_pressed"] [connection signal="pressed" from="MarginContainer/VBoxContainer/ExitButton" to="." method="_on_exit_button_pressed"] diff --git a/wall_cwt.tres b/wall_cwt.tres new file mode 100644 index 0000000..8fe019a --- /dev/null +++ b/wall_cwt.tres @@ -0,0 +1,4 @@ +[gd_resource type="ConcavePolygonShape3D" format=3 uid="uid://30um6cm5oj6q"] + +[resource] +data = PackedVector3Array(5, 0, 5, -5, 0, 5, 5, 0, -5, -5, 0, 5, -5, 0, -5, 5, 0, -5) diff --git a/wall_ncwt.tres b/wall_ncwt.tres new file mode 100644 index 0000000..b6406c7 --- /dev/null +++ b/wall_ncwt.tres @@ -0,0 +1,5 @@ +[gd_resource type="ConcavePolygonShape3D" format=3 uid="uid://ck3ryefc358gp"] + +[resource] +data = PackedVector3Array(5, 0, 5, -5, 0, 5, 5, 0, -5, -5, 0, 5, -5, 0, -5, 5, 0, -5) +backface_collision = true