This commit is contained in:
2024-01-12 21:42:21 +01:00
parent 1c900a23f8
commit 9d921e4992
17 changed files with 382 additions and 0 deletions

23
scenes/levels/debug.tscn Normal file
View File

@@ -0,0 +1,23 @@
[gd_scene load_steps=4 format=3 uid="uid://ckad8stc13n83"]
[ext_resource type="PackedScene" uid="uid://gg5ph541e4p3" path="res://scenes/player.tscn" id="1_2585i"]
[sub_resource type="PlaneMesh" id="PlaneMesh_t51pb"]
size = Vector2(10, 10)
[sub_resource type="BoxShape3D" id="BoxShape3D_067df"]
size = Vector3(10, 0.01, 10)
[node name="Debug" type="Node3D"]
[node name="Ground" type="StaticBody3D" parent="."]
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"]
mesh = SubResource("PlaneMesh_t51pb")
skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground"]
shape = SubResource("BoxShape3D_067df")
[node name="Player" parent="." instance=ExtResource("1_2585i")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)

10
scenes/levels/lvl_1.tscn Normal file
View File

@@ -0,0 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://eok3g18b83f0"]
[ext_resource type="MeshLibrary" uid="uid://c2bhu7trxj2ef" path="res://assets/meshlib/housing.tres" id="2_68k16"]
[node name="Level1" type="Node3D"]
[node name="GridMap" type="GridMap" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.01438, 0)
mesh_library = ExtResource("2_68k16")
metadata/_editor_floor_ = Vector3(0, -1, 0)

View File

@@ -0,0 +1,74 @@
[gd_scene load_steps=6 format=3 uid="uid://dji1rniuusnmy"]
[ext_resource type="Script" path="res://scripts/menus/main_menu.gd" id="1_1osxu"]
[ext_resource type="Texture2D" uid="uid://bt1ywpvnxswet" path="res://assets/textures/branding/logo.png" id="2_ff1yt"]
[sub_resource type="LabelSettings" id="LabelSettings_yh38l"]
font_size = 55
[sub_resource type="InputEventAction" id="InputEventAction_bc05y"]
action = &"ui_accept"
[sub_resource type="Shortcut" id="Shortcut_fasub"]
events = [SubResource("InputEventAction_bc05y")]
[node name="MainMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_1osxu")
[node name="LogoContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -197.0
offset_top = -88.5
offset_right = 197.0
offset_bottom = 88.5
grow_horizontal = 2
grow_vertical = 2
[node name="Title" type="Label" parent="LogoContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "Byte of Terrror"
label_settings = SubResource("LabelSettings_yh38l")
[node name="Subtitle" type="Label" parent="LogoContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "ein Spiel von Yannik Ain und Merle ? für das"
[node name="TextureRect" type="TextureRect" parent="LogoContainer"]
custom_minimum_size = Vector2(180, 70)
layout_mode = 2
size_flags_horizontal = 4
texture = ExtResource("2_ff1yt")
expand_mode = 1
[node name="StartGame" type="Button" parent="."]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -53.0
offset_top = -93.0
offset_right = 53.0
offset_bottom = -62.0
grow_horizontal = 2
grow_vertical = 0
focus_mode = 0
shortcut = SubResource("Shortcut_fasub")
shortcut_in_tooltip = false
text = "Spiel starten"
[connection signal="pressed" from="StartGame" to="." method="_on_start_game_pressed"]

25
scenes/player.tscn Normal file
View File

@@ -0,0 +1,25 @@
[gd_scene load_steps=4 format=3 uid="uid://gg5ph541e4p3"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_8d33x"]
[ext_resource type="Texture2D" uid="uid://2xwafdhiha6x" path="res://assets/textures/world/flashlight_effect.png" id="1_rxdpg"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2qx4s"]
[node name="Player" type="CharacterBody3D"]
script = ExtResource("1_8d33x")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_2qx4s")
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.7, 0)
[node name="SpotLight3D" type="SpotLight3D" parent="Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.25, -0.25, 0)
light_energy = 3.0
light_indirect_energy = 4.0
light_volumetric_fog_energy = 4.0
light_projector = ExtResource("1_rxdpg")
shadow_enabled = true
spot_range = 43.1073
spot_angle = 52.0559