Move levels, adjust menu theme

This commit is contained in:
Vojtěch Struhár 2025-02-12 19:27:37 +01:00
parent a23c2e7da7
commit cbb4b51a94
8 changed files with 120 additions and 116 deletions

View File

@ -1,13 +1,3 @@
# DP Konzultace 1
- 11.2.2024
## Optat se
- Udělám pár technických vylepšení a jinak se zaměřím na DX portálů - gizma, guidy, procedural mesh
- Téma DP do IS?
- Kdy se odevzdává DP?
## Poznámky k implementaci ## Poznámky k implementaci
### 5 roomka ### 5 roomka
@ -29,6 +19,6 @@ venkovního úhlu. Protože reálně jsem od něj mega daleko, takže portálov
3 místnosti do čtverce 3 místnosti do čtverce
- Zkusil jsem vymodelovat vlastní mesh v blenderu. Moc to nefunguje, Godot je asi zmatený z toho - Zkusil jsem vymodelovat vlastní mesh v blenderu. Moc to nefunguje, Godot je asi zmatený z toho
že on má Y-up a Blender používá Z-up. V portal repu je k tomu poznámka ale nepochopil jsem to asi. že on má Y-up a Blender používá Z-up. V portal repu je k tomu poznámka ale nepochopil jsem to asi.
- Divně se na ten mesh pak projektuje ta textura kamery?? - Divně se na ten mesh pak projektuje ta textura kamery??
- Možná by stálo za to udělat procedurální mesh. Nejběžnější tvar portálu bude asi obdélník - Možná by stálo za to udělat procedurální mesh. Nejběžnější tvar portálu bude asi obdélník

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,14 +1,14 @@
[gd_scene load_steps=13 format=3 uid="uid://c0uk51mh24sl6"] [gd_scene load_steps=13 format=3 uid="uid://c0uk51mh24sl6"]
[ext_resource type="PackedScene" uid="uid://cjd40tsurltut" path="res://addons/platformer-assets/block-grass-large.glb" id="1_1wwjl"] [ext_resource type="PackedScene" uid="uid://cgdlowfuuorvi" path="res://player.tscn" id="1_wmc81"]
[ext_resource type="PackedScene" uid="uid://cgdlowfuuorvi" path="res://player.tscn" id="3_7knre"] [ext_resource type="PackedScene" uid="uid://cjd40tsurltut" path="res://addons/platformer-assets/block-grass-large.glb" id="2_6nhbe"]
[ext_resource type="PackedScene" uid="uid://c6u7a7bisra5b" path="res://addons/platformer-assets/flowers.glb" id="3_qvh7i"] [ext_resource type="PackedScene" uid="uid://c6u7a7bisra5b" path="res://addons/platformer-assets/flowers.glb" id="3_uxyox"]
[ext_resource type="PackedScene" uid="uid://2oao5c24w74u" path="res://addons/platformer-assets/grass.glb" id="4_wg85y"] [ext_resource type="PackedScene" uid="uid://2oao5c24w74u" path="res://addons/platformer-assets/grass.glb" id="4_p6b85"]
[ext_resource type="PackedScene" uid="uid://btdarsbrym1d4" path="res://addons/platformer-assets/flag.glb" id="5_r0or3"] [ext_resource type="PackedScene" uid="uid://btdarsbrym1d4" path="res://addons/platformer-assets/flag.glb" id="5_a4n4h"]
[ext_resource type="Script" uid="uid://d2bvvjsibau8c" path="res://addons/simple-portal-system/scripts/portal.gd" id="5_wg85y"] [ext_resource type="ArrayMesh" uid="uid://bqilnvlfws6xh" path="res://portal-mesh.tres" id="6_21xnk"]
[ext_resource type="Script" uid="uid://bkv7t4hw21byg" path="res://addons/simple-portal-system/scripts/simple_portal_teleport.gd" id="6_3fidx"] [ext_resource type="Script" uid="uid://d2bvvjsibau8c" path="res://addons/simple-portal-system/scripts/portal.gd" id="7_8mrlp"]
[ext_resource type="ArrayMesh" uid="uid://bqilnvlfws6xh" path="res://portal-mesh.tres" id="7_hwdx8"] [ext_resource type="Script" uid="uid://bkv7t4hw21byg" path="res://addons/simple-portal-system/scripts/simple_portal_teleport.gd" id="8_kco3g"]
[ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="9_2wcgd"] [ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="9_afarl"]
[sub_resource type="Environment" id="Environment_7knre"] [sub_resource type="Environment" id="Environment_7knre"]
background_mode = 1 background_mode = 1
@ -30,12 +30,12 @@ shadow_enabled = true
[node name="WorldEnvironment" type="WorldEnvironment" parent="."] [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_7knre") environment = SubResource("Environment_7knre")
[node name="Player" parent="." instance=ExtResource("3_7knre")] [node name="Player" parent="." instance=ExtResource("1_wmc81")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.84696, 1.60873, -1.16561) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.84696, 1.60873, -1.16561)
[node name="Island" type="Node3D" parent="."] [node name="Island" type="Node3D" parent="."]
[node name="block-grass-large2" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large2" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large2"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large2"]
@ -44,7 +44,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large3" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large3" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large3"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large3"]
@ -53,7 +53,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large4" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large4" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large4"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large4"]
@ -62,7 +62,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large5" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large5" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large5"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large5"]
@ -71,7 +71,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large6" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large6" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large6"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large6"]
@ -80,7 +80,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large7" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large7" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large7"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large7"]
@ -89,7 +89,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large8" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large8" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large8"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large8"]
@ -98,7 +98,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large9" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large9" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large9"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large9"]
@ -107,7 +107,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large10" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large10" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large10"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large10"]
@ -116,7 +116,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large11" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large11" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large11"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large11"]
@ -125,7 +125,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large12" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large12" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large12"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large12"]
@ -134,7 +134,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large13" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large13" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large13"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large13"]
@ -143,7 +143,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, 1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large14" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large14" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large14"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large14"]
@ -152,7 +152,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large15" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large15" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large15"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large15"]
@ -161,7 +161,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large16" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large16" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large16"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large16"]
@ -170,7 +170,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large17" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large17" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large17"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large17"]
@ -179,7 +179,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large18" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large18" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large18"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large18"]
@ -188,7 +188,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large19" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large19" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -1) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -1)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large19"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large19"]
@ -197,7 +197,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -1)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large20" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large20" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large20"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large20"]
@ -206,7 +206,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large21" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large21" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -3) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -3)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large21"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large21"]
@ -215,7 +215,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -3)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large22" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large22" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large22"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large22"]
@ -224,7 +224,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, -5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large23" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large23" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large23"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large23"]
@ -233,7 +233,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, -5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large24" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large24" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large24"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large24"]
@ -242,7 +242,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, -5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="block-grass-large25" parent="Island" instance=ExtResource("1_1wwjl")] [node name="block-grass-large25" parent="Island" instance=ExtResource("2_6nhbe")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -5) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -5)
[node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large25"] [node name="StaticBody3D" type="StaticBody3D" parent="Island/block-grass-large25"]
@ -251,24 +251,24 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0, -5)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.005, 0.5, 0)
shape = SubResource("BoxShape3D_1wwjl") shape = SubResource("BoxShape3D_1wwjl")
[node name="flowers" parent="Island" instance=ExtResource("3_qvh7i")] [node name="flowers" parent="Island" instance=ExtResource("3_uxyox")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.31658, 1, 4.77017) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.31658, 1, 4.77017)
[node name="flowers2" parent="Island" instance=ExtResource("3_qvh7i")] [node name="flowers2" parent="Island" instance=ExtResource("3_uxyox")]
transform = Transform3D(0.82088, 0, -0.5711, 0, 1, 0, 0.5711, 0, 0.82088, 2.6032, 1, 2.60677) transform = Transform3D(0.82088, 0, -0.5711, 0, 1, 0, 0.5711, 0, 0.82088, 2.6032, 1, 2.60677)
[node name="grass2" parent="Island" instance=ExtResource("4_wg85y")] [node name="grass2" parent="Island" instance=ExtResource("4_p6b85")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.44316, 1, 0.59875) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.44316, 1, 0.59875)
[node name="flag2" parent="Island" instance=ExtResource("5_r0or3")] [node name="flag2" parent="Island" instance=ExtResource("5_a4n4h")]
transform = Transform3D(-0.896199, 0, 3.34466, 0, 3.46265, 0, -3.34466, 0, -0.896199, -3.34096, 1, -5.4095) transform = Transform3D(-0.896199, 0, 3.34466, 0, 3.46265, 0, -3.34466, 0, -0.896199, -3.34096, 1, -5.4095)
[node name="P_bottom" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")] [node name="P_bottom" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
transform = Transform3D(-20, -1.74846e-06, -3.82137e-15, 0, -8.74228e-07, 1, -1.74846e-06, 20, 4.37114e-08, 0, -15, 0) transform = Transform3D(-20, -1.74846e-06, -3.82137e-15, 0, -8.74228e-07, 1, -1.74846e-06, 20, 4.37114e-08, 0, -15, 0)
layers = 2 layers = 2
cast_shadow = 0 cast_shadow = 0
mesh = ExtResource("7_hwdx8") mesh = ExtResource("6_21xnk")
script = ExtResource("5_wg85y") script = ExtResource("7_8mrlp")
vertical_viewport_resolution = 1080 vertical_viewport_resolution = 1080
disable_viewport_distance = 55.0 disable_viewport_distance = 55.0
destroy_disabled_viewport = false destroy_disabled_viewport = false
@ -279,7 +279,7 @@ exit_cull_mask = 1048573
exit_portal = NodePath("../P_top") exit_portal = NodePath("../P_top")
[node name="Teleport" type="Area3D" parent="P_bottom"] [node name="Teleport" type="Area3D" parent="P_bottom"]
script = ExtResource("6_3fidx") script = ExtResource("8_kco3g")
[node name="CollisionShape3D" type="CollisionShape3D" parent="P_bottom/Teleport"] [node name="CollisionShape3D" type="CollisionShape3D" parent="P_bottom/Teleport"]
transform = Transform3D(1, 0, 0, 0, 1, -2.88658e-14, 0, 7.16227e-12, 1, 0, -3.55271e-15, -4.39912) transform = Transform3D(1, 0, 0, 0, 1, -2.88658e-14, 0, 7.16227e-12, 1, 0, -3.55271e-15, -4.39912)
@ -289,8 +289,8 @@ shape = SubResource("BoxShape3D_2wcgd")
transform = Transform3D(20, 0, 0, 0, -8.74228e-07, -1.1, 0, 20, -4.80825e-08, 0, 15, 0) transform = Transform3D(20, 0, 0, 0, -8.74228e-07, -1.1, 0, 20, -4.80825e-08, 0, 15, 0)
layers = 2 layers = 2
cast_shadow = 0 cast_shadow = 0
mesh = ExtResource("7_hwdx8") mesh = ExtResource("6_21xnk")
script = ExtResource("5_wg85y") script = ExtResource("7_8mrlp")
vertical_viewport_resolution = 1080 vertical_viewport_resolution = 1080
disable_viewport_distance = 55.0 disable_viewport_distance = 55.0
destroy_disabled_viewport = false destroy_disabled_viewport = false
@ -300,4 +300,4 @@ fade_out_color = Color(0.590126, 0.615058, 0.699408, 1)
exit_cull_mask = 1048573 exit_cull_mask = 1048573
exit_portal = NodePath("../P_bottom") exit_portal = NodePath("../P_bottom")
[node name="HUD" parent="." instance=ExtResource("9_2wcgd")] [node name="HUD" parent="." instance=ExtResource("9_afarl")]

View File

@ -1,8 +1,8 @@
extends Control extends Control
const LEVEL_5_ROOMS = preload("res://level_5rooms.tscn") const LEVEL_5_ROOMS = preload("res://levels/level_5rooms.tscn")
const LEVEL_PLATFORMER = preload("res://level_platformer.tscn") const LEVEL_3_ROOMS = preload("res://levels/level_3_rooms.tscn")
const LEVEL_3_ROOMS = preload("res://level_3_rooms.tscn") const LEVEL_PLATFORMER = preload("res://levels/level_platformer.tscn")
func _on_level_button_1_pressed() -> void: func _on_level_button_1_pressed() -> void:
get_tree().change_scene_to_packed(LEVEL_5_ROOMS) get_tree().change_scene_to_packed(LEVEL_5_ROOMS)

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://cim3ul77o0ipr"] [gd_scene load_steps=3 format=3 uid="uid://cim3ul77o0ipr"]
[ext_resource type="Script" uid="uid://cxh40jp4vov4d" path="res://menu.gd" id="1_lti8b"] [ext_resource type="Script" uid="uid://cxh40jp4vov4d" path="res://menu.gd" id="1_lti8b"]
[ext_resource type="Theme" uid="uid://h8lwapw6q4pv" path="res://menu_theme.tres" id="1_ouk20"]
[node name="Menu" type="Control"] [node name="Menu" type="Control"]
layout_mode = 3 layout_mode = 3
@ -9,6 +10,7 @@ anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2 grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
theme = ExtResource("1_ouk20")
script = ExtResource("1_lti8b") script = ExtResource("1_lti8b")
[node name="CenterContainer" type="CenterContainer" parent="."] [node name="CenterContainer" type="CenterContainer" parent="."]
@ -24,7 +26,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="CenterContainer/ItemsContainer"] [node name="Label" type="Label" parent="CenterContainer/ItemsContainer"]
layout_mode = 2 layout_mode = 2
text = "Portals Demo" text = "Portals Demo - DIploma project"
horizontal_alignment = 1 horizontal_alignment = 1
[node name="HSeparator" type="HSeparator" parent="CenterContainer/ItemsContainer"] [node name="HSeparator" type="HSeparator" parent="CenterContainer/ItemsContainer"]

7
menu_theme.tres Normal file
View File

@ -0,0 +1,7 @@
[gd_resource type="Theme" format=3 uid="uid://h8lwapw6q4pv"]
[resource]
Button/font_sizes/font_size = 32
HSeparator/constants/separation = 16
Label/font_sizes/font_size = 32
VBoxContainer/constants/separation = 8

View File

@ -15,6 +15,11 @@ run/main_scene="uid://cim3ul77o0ipr"
config/features=PackedStringArray("4.4", "Forward Plus") config/features=PackedStringArray("4.4", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[display]
window/size/viewport_width=1920
window/size/viewport_height=1080
[input] [input]
move_left={ move_left={