Merge branch 'main' of github.com:PfandBoss/SemesterGameJam2022

This commit is contained in:
2022-12-11 11:21:22 +01:00
27 changed files with 389 additions and 30 deletions

View File

@@ -0,0 +1,13 @@
extends Node3D
var speed := 2.0
func _process(delta):
rotate(Vector3(0,1,0),delta * speed)
print(rotation.y)

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bvs2d1ed47gpg"
path.s3tc="res://.godot/imported/Opera_senza_titolo-3.png-830dd687a73746be85ee47be727a141c.s3tc.ctex"
path.etc2="res://.godot/imported/Opera_senza_titolo-3.png-830dd687a73746be85ee47be727a141c.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Font/Opera_senza_titolo-3.png"
dest_files=["res://.godot/imported/Opera_senza_titolo-3.png-830dd687a73746be85ee47be727a141c.s3tc.ctex", "res://.godot/imported/Opera_senza_titolo-3.png-830dd687a73746be85ee47be727a141c.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bb32ohgxsjd4h"
path.s3tc="res://.godot/imported/Opera_senza_titolo.png-e38769f74f6ec3b3af52ad447b5f0b95.s3tc.ctex"
path.etc2="res://.godot/imported/Opera_senza_titolo.png-e38769f74f6ec3b3af52ad447b5f0b95.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Font/Opera_senza_titolo.png"
dest_files=["res://.godot/imported/Opera_senza_titolo.png-e38769f74f6ec3b3af52ad447b5f0b95.s3tc.ctex", "res://.godot/imported/Opera_senza_titolo.png-e38769f74f6ec3b3af52ad447b5f0b95.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dy85j2wm08enl"
path.s3tc="res://.godot/imported/credits.png-d454fd065c3f2bece11e8c3c42b74600.s3tc.ctex"
path.etc2="res://.godot/imported/credits.png-d454fd065c3f2bece11e8c3c42b74600.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Font/credits.png"
dest_files=["res://.godot/imported/credits.png-d454fd065c3f2bece11e8c3c42b74600.s3tc.ctex", "res://.godot/imported/credits.png-d454fd065c3f2bece11e8c3c42b74600.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

View File

@@ -0,0 +1,30 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://d1xca1jqq0nyv"
path="res://.godot/imported/rail_menu.glb-9387fdc190d15b559664a02e20b7a36f.scn"
[deps]
source_file="res://Assets/Textures/Font/rail_menu.glb"
dest_files=["res://.godot/imported/rail_menu.glb-9387fdc190d15b559664a02e20b7a36f.scn"]
[params]
nodes/root_type="Node3D"
nodes/root_name="Scene Root"
nodes/apply_root_scale=true
nodes/root_scale=1.0
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
import_script/path=""
_subresources={}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://60i5abp5yobu"
path.s3tc="res://.godot/imported/settings.png-ffdfa0e9eb45d6db4034b3743f39e1f0.s3tc.ctex"
path.etc2="res://.godot/imported/settings.png-ffdfa0e9eb45d6db4034b3743f39e1f0.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Font/settings.png"
dest_files=["res://.godot/imported/settings.png-ffdfa0e9eb45d6db4034b3743f39e1f0.s3tc.ctex", "res://.godot/imported/settings.png-ffdfa0e9eb45d6db4034b3743f39e1f0.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://1gpuhu61xah1"
path.s3tc="res://.godot/imported/titolo.png-827539b76537f287f793637005cd7279.s3tc.ctex"
path.etc2="res://.godot/imported/titolo.png-827539b76537f287f793637005cd7279.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Font/titolo.png"
dest_files=["res://.godot/imported/titolo.png-827539b76537f287f793637005cd7279.s3tc.ctex", "res://.godot/imported/titolo.png-827539b76537f287f793637005cd7279.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@@ -0,0 +1,9 @@
[gd_resource type="StandardMaterial3D" load_steps=3 format=3 uid="uid://b27870gqxnuai"]
[ext_resource type="Texture2D" uid="uid://c2ptxav0ud0kg" path="res://Assets/Textures/Sand/Sand_Diffuse.png" id="1_vwott"]
[ext_resource type="Texture2D" uid="uid://fmqytawg0uli" path="res://Assets/Textures/Sand/Sand_Normal.png" id="2_clsr1"]
[resource]
albedo_texture = ExtResource("1_vwott")
normal_enabled = true
normal_texture = ExtResource("2_clsr1")

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c2ptxav0ud0kg"
path.s3tc="res://.godot/imported/Sand_Diffuse.png-fdd04e698dd70afdba9d8f6a5393d016.s3tc.ctex"
path.etc2="res://.godot/imported/Sand_Diffuse.png-fdd04e698dd70afdba9d8f6a5393d016.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Sand/Sand_Diffuse.png"
dest_files=["res://.godot/imported/Sand_Diffuse.png-fdd04e698dd70afdba9d8f6a5393d016.s3tc.ctex", "res://.godot/imported/Sand_Diffuse.png-fdd04e698dd70afdba9d8f6a5393d016.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 KiB

View File

@@ -0,0 +1,36 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://fmqytawg0uli"
path.s3tc="res://.godot/imported/Sand_Normal.png-e45c8125450c4cdc9833015bb7753711.s3tc.ctex"
path.etc2="res://.godot/imported/Sand_Normal.png-e45c8125450c4cdc9833015bb7753711.etc2.ctex"
metadata={
"imported_formats": ["s3tc", "etc2"],
"vram_texture": true
}
[deps]
source_file="res://Assets/Textures/Sand/Sand_Normal.png"
dest_files=["res://.godot/imported/Sand_Normal.png-e45c8125450c4cdc9833015bb7753711.s3tc.ctex", "res://.godot/imported/Sand_Normal.png-e45c8125450c4cdc9833015bb7753711.etc2.ctex"]
[params]
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/bptc_ldr=0
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://Assets/Textures/Sand/Sand_Normal.png"
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=18 format=3 uid="uid://c4njs3xp5s582"] [gd_scene load_steps=22 format=3 uid="uid://c4njs3xp5s582"]
[ext_resource type="PackedScene" uid="uid://bn42ap8pnv34r" path="res://Assets/Model/MainMenuObjects/tischplatte.glb" id="1_x1eq8"] [ext_resource type="PackedScene" uid="uid://bn42ap8pnv34r" path="res://Assets/Model/MainMenuObjects/tischplatte.glb" id="1_x1eq8"]
[ext_resource type="PackedScene" uid="uid://fpl3qyhc3e6m" path="res://Assets/Model/MainMenuObjects/blueprint untergrund.glb" id="2_l7bb1"] [ext_resource type="PackedScene" uid="uid://fpl3qyhc3e6m" path="res://Assets/Model/MainMenuObjects/blueprint untergrund.glb" id="2_l7bb1"]
@@ -9,14 +9,18 @@
[ext_resource type="PackedScene" uid="uid://cfs0mfmyps1si" path="res://Assets/Model/MainMenuObjects/papierrolle_flach.glb" id="7_32tfv"] [ext_resource type="PackedScene" uid="uid://cfs0mfmyps1si" path="res://Assets/Model/MainMenuObjects/papierrolle_flach.glb" id="7_32tfv"]
[ext_resource type="Script" path="res://scripts/3DUI/dreieck.gd" id="7_jf0cx"] [ext_resource type="Script" path="res://scripts/3DUI/dreieck.gd" id="7_jf0cx"]
[ext_resource type="PackedScene" uid="uid://b6ftkalbyl77o" path="res://Assets/Model/MainMenuObjects/papierrolle_knick.glb" id="8_dcfhc"] [ext_resource type="PackedScene" uid="uid://b6ftkalbyl77o" path="res://Assets/Model/MainMenuObjects/papierrolle_knick.glb" id="8_dcfhc"]
[ext_resource type="Texture2D" uid="uid://bvs2d1ed47gpg" path="res://Assets/Textures/Font/Opera_senza_titolo-3.png" id="8_scw7v"]
[ext_resource type="PackedScene" uid="uid://dl5er7ybhbjx4" path="res://Assets/Model/MainMenuObjects/zahnrad_gross.glb" id="9_040k3"] [ext_resource type="PackedScene" uid="uid://dl5er7ybhbjx4" path="res://Assets/Model/MainMenuObjects/zahnrad_gross.glb" id="9_040k3"]
[ext_resource type="Script" path="res://scripts/3DUI/papierrolle_flach.gd" id="9_p50rx"] [ext_resource type="Script" path="res://scripts/3DUI/papierrolle_flach.gd" id="9_p50rx"]
[ext_resource type="PackedScene" uid="uid://dsj0fslwga5xl" path="res://Assets/Model/MainMenuObjects/zahnrad_klein.glb" id="10_4uhdl"] [ext_resource type="PackedScene" uid="uid://dsj0fslwga5xl" path="res://Assets/Model/MainMenuObjects/zahnrad_klein.glb" id="10_4uhdl"]
[ext_resource type="Texture2D" uid="uid://dy85j2wm08enl" path="res://Assets/Textures/Font/credits.png" id="11_07r0e"]
[ext_resource type="PackedScene" uid="uid://crg01h82ww1m6" path="res://Assets/Model/MainMenuObjects/zahnrad_mittel.glb" id="11_lokvi"] [ext_resource type="PackedScene" uid="uid://crg01h82ww1m6" path="res://Assets/Model/MainMenuObjects/zahnrad_mittel.glb" id="11_lokvi"]
[ext_resource type="PackedScene" uid="uid://d2k8qu46g6ono" path="res://Assets/Model/MainMenuObjects/blueprint deko.glb" id="12_67wtp"] [ext_resource type="PackedScene" uid="uid://d2k8qu46g6ono" path="res://Assets/Model/MainMenuObjects/blueprint deko.glb" id="12_67wtp"]
[ext_resource type="PackedScene" uid="uid://nxapkgcq2c70" path="res://Nodes/light_setup.tscn" id="13_smxpv"] [ext_resource type="PackedScene" uid="uid://nxapkgcq2c70" path="res://Nodes/light_setup.tscn" id="13_smxpv"]
[ext_resource type="PackedScene" uid="uid://dhe41jox6id7r" path="res://Assets/Model/MainMenuObjects/bild_deko.glb" id="14_gbsgf"] [ext_resource type="PackedScene" uid="uid://dhe41jox6id7r" path="res://Assets/Model/MainMenuObjects/bild_deko.glb" id="14_gbsgf"]
[ext_resource type="Script" path="res://scripts/3DUI/zahnraeder.gd" id="14_o12ah"] [ext_resource type="Script" path="res://scripts/3DUI/zahnraeder.gd" id="14_o12ah"]
[ext_resource type="Texture2D" uid="uid://60i5abp5yobu" path="res://Assets/Textures/Font/settings.png" id="19_go7mp"]
[ext_resource type="Texture2D" uid="uid://1gpuhu61xah1" path="res://Assets/Textures/Font/titolo.png" id="21_qybk8"]
[node name="MainMenu3D" type="Node3D"] [node name="MainMenu3D" type="Node3D"]
@@ -48,6 +52,10 @@ script = ExtResource("7_jf0cx")
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0) transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
polygon = PackedVector2Array(0.351274, -1.7499, -1.21959, 0.121159, 0.67798, 1.71333) polygon = PackedVector2Array(0.351274, -1.7499, -1.21959, 0.121159, 0.67798, 1.71333)
[node name="play" type="Sprite3D" parent="dreieck"]
transform = Transform3D(-0.5, 7.54979e-08, 3.30012e-15, 0, -2.18557e-08, 0.5, 7.54979e-08, 0.5, 2.18557e-08, -3.14193, 0, 0)
texture = ExtResource("8_scw7v")
[node name="papierrolle_flach" parent="." instance=ExtResource("7_32tfv")] [node name="papierrolle_flach" parent="." instance=ExtResource("7_32tfv")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.597003, 0.758382, -5.10524) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.597003, 0.758382, -5.10524)
script = ExtResource("9_p50rx") script = ExtResource("9_p50rx")
@@ -58,6 +66,10 @@ script = ExtResource("9_p50rx")
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0) transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
polygon = PackedVector2Array(-2.45033, 2.48997, 0.151118, 3.31404, 1.73134, -2.91213, -0.868115, -3.33871) polygon = PackedVector2Array(-2.45033, 2.48997, 0.151118, 3.31404, 1.73134, -2.91213, -0.868115, -3.33871)
[node name="tutorial" type="Sprite3D" parent="papierrolle_flach"]
transform = Transform3D(-0.4, 6.03983e-08, 2.64009e-15, 0, -1.74846e-08, 0.4, 6.03983e-08, 0.4, 1.74846e-08, 0, 0, 3.93247)
texture = ExtResource("11_07r0e")
[node name="papierrolle_knick" parent="." instance=ExtResource("8_dcfhc")] [node name="papierrolle_knick" parent="." instance=ExtResource("8_dcfhc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.37086, 0.984295, -5.84062) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.37086, 0.984295, -5.84062)
@@ -91,6 +103,14 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.438931, 0, -2.77826)
[node name="zahnrad_mittel" parent="zahnraeder" instance=ExtResource("11_lokvi")] [node name="zahnrad_mittel" parent="zahnraeder" instance=ExtResource("11_lokvi")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.90855, 0.23831, -0.686673) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.90855, 0.23831, -0.686673)
[node name="settings" type="Sprite3D" parent="zahnraeder"]
transform = Transform3D(-0.5, 7.54979e-08, 3.30012e-15, 0, -2.18557e-08, 0.5, 7.54979e-08, 0.5, 2.18557e-08, 5.89407, 0, -0.414213)
texture = ExtResource("19_go7mp")
[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform3D(-1, 1.50996e-07, 6.60024e-15, 0, -4.37114e-08, 1, 1.50996e-07, 1, 4.37114e-08, 2.2, 0.44, 4.107)
texture = ExtResource("21_qybk8")
[connection signal="input_event" from="dreieck/Area3D" to="dreieck" method="_on_area_3d_input_event"] [connection signal="input_event" from="dreieck/Area3D" to="dreieck" method="_on_area_3d_input_event"]
[connection signal="mouse_exited" from="dreieck/Area3D" to="dreieck" method="_on_area_3d_mouse_exited"] [connection signal="mouse_exited" from="dreieck/Area3D" to="dreieck" method="_on_area_3d_mouse_exited"]
[connection signal="input_event" from="papierrolle_flach/Area3D" to="papierrolle_flach" method="_on_area_3d_input_event"] [connection signal="input_event" from="papierrolle_flach/Area3D" to="papierrolle_flach" method="_on_area_3d_input_event"]

View File

@@ -4,7 +4,7 @@
[ext_resource type="Script" path="res://Nodes/UI.gd" id="1_dxr24"] [ext_resource type="Script" path="res://Nodes/UI.gd" id="1_dxr24"]
[ext_resource type="Texture2D" uid="uid://44lfs83sax35" path="res://undefined - Imgur.png" id="2_udann"] [ext_resource type="Texture2D" uid="uid://44lfs83sax35" path="res://undefined - Imgur.png" id="2_udann"]
[ext_resource type="Texture2D" uid="uid://cxfybbp5idjwg" path="res://o_idle1.png" id="3_segqn"] [ext_resource type="Texture2D" uid="uid://cxfybbp5idjwg" path="res://o_idle1.png" id="3_segqn"]
[ext_resource type="PackedScene" uid="uid://dgr3cta6n1tg3" path="res://menu/stats_player_1.tscn" id="3_yhsvf"] [ext_resource type="PackedScene" path="res://menu/stats_player_1.tscn" id="3_yhsvf"]
[ext_resource type="PackedScene" path="res://menu/stats_player_2.tscn" id="4_c4m18"] [ext_resource type="PackedScene" path="res://menu/stats_player_2.tscn" id="4_c4m18"]
[ext_resource type="Texture2D" uid="uid://dsphpbpt27t1i" path="res://a3TCqhg.png" id="4_uiyin"] [ext_resource type="Texture2D" uid="uid://dsphpbpt27t1i" path="res://a3TCqhg.png" id="4_uiyin"]
@@ -31,7 +31,6 @@ script = ExtResource("1_dxr24")
[node name="Panel" type="Panel" parent="."] [node name="Panel" type="Panel" parent="."]
custom_minimum_size = Vector2(15, 0) custom_minimum_size = Vector2(15, 0)
layout_mode = 1
anchors_preset = 13 anchors_preset = 13
anchor_left = 0.5 anchor_left = 0.5
anchor_right = 0.5 anchor_right = 0.5
@@ -40,7 +39,6 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
[node name="VSlider" type="VSlider" parent="."] [node name="VSlider" type="VSlider" parent="."]
layout_mode = 1
anchors_preset = 13 anchors_preset = 13
anchor_left = 0.5 anchor_left = 0.5
anchor_right = 0.5 anchor_right = 0.5
@@ -58,7 +56,6 @@ editable = false
scrollable = false scrollable = false
[node name="VSlider2" type="VSlider" parent="."] [node name="VSlider2" type="VSlider" parent="."]
layout_mode = 1
anchors_preset = 13 anchors_preset = 13
anchor_left = 0.5 anchor_left = 0.5
anchor_right = 0.5 anchor_right = 0.5
@@ -77,7 +74,7 @@ scrollable = false
[node name="GameOver" type="Control" parent="."] [node name="GameOver" type="Control" parent="."]
visible = false visible = false
layout_mode = 1 layout_mode = 3
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
@@ -85,7 +82,6 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
[node name="Label" type="Label" parent="GameOver"] [node name="Label" type="Label" parent="GameOver"]
layout_mode = 1
anchors_preset = 8 anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
@@ -102,7 +98,6 @@ label_settings = SubResource("LabelSettings_ot0gm")
horizontal_alignment = 1 horizontal_alignment = 1
[node name="VBoxContainer" type="VBoxContainer" parent="GameOver"] [node name="VBoxContainer" type="VBoxContainer" parent="GameOver"]
layout_mode = 1
anchors_preset = 8 anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
@@ -118,15 +113,12 @@ size_flags_horizontal = 4
size_flags_vertical = 4 size_flags_vertical = 4
[node name="Button" type="Button" parent="GameOver/VBoxContainer"] [node name="Button" type="Button" parent="GameOver/VBoxContainer"]
layout_mode = 2
text = "RESTART" text = "RESTART"
[node name="Button2" type="Button" parent="GameOver/VBoxContainer"] [node name="Button2" type="Button" parent="GameOver/VBoxContainer"]
layout_mode = 2
text = "BACK TO MAIN MENU" text = "BACK TO MAIN MENU"
[node name="BoxContainer" type="BoxContainer" parent="GameOver"] [node name="BoxContainer" type="BoxContainer" parent="GameOver"]
layout_mode = 1
anchors_preset = 8 anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
@@ -141,24 +133,21 @@ grow_vertical = 2
[node name="HBoxContainer" type="HBoxContainer" parent="GameOver/BoxContainer"] [node name="HBoxContainer" type="HBoxContainer" parent="GameOver/BoxContainer"]
custom_minimum_size = Vector2(900, 500) custom_minimum_size = Vector2(900, 500)
layout_mode = 2
size_flags_horizontal = 4 size_flags_horizontal = 4
size_flags_vertical = 4 size_flags_vertical = 4
[node name="TextureRect" type="TextureRect" parent="GameOver/BoxContainer/HBoxContainer"] [node name="TextureRect" type="TextureRect" parent="GameOver/BoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(500, 0) custom_minimum_size = Vector2(500, 0)
layout_mode = 2
texture = ExtResource("3_segqn") texture = ExtResource("3_segqn")
ignore_texture_size = true ignore_texture_size = true
[node name="TextureRect2" type="TextureRect" parent="GameOver/BoxContainer/HBoxContainer"] [node name="TextureRect2" type="TextureRect" parent="GameOver/BoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(500, 0) custom_minimum_size = Vector2(500, 0)
layout_mode = 2
texture = ExtResource("4_uiyin") texture = ExtResource("4_uiyin")
ignore_texture_size = true ignore_texture_size = true
[node name="Control" type="Control" parent="."] [node name="Control" type="Control" parent="."]
layout_mode = 1 layout_mode = 3
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
@@ -166,7 +155,6 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
[node name="Stats_Player1" parent="Control" instance=ExtResource("3_yhsvf")] [node name="Stats_Player1" parent="Control" instance=ExtResource("3_yhsvf")]
layout_mode = 1
anchors_preset = 0 anchors_preset = 0
anchor_bottom = 0.0 anchor_bottom = 0.0
offset_right = 0.0 offset_right = 0.0
@@ -174,7 +162,6 @@ grow_vertical = 1
scale = Vector2(0.6, 0.6) scale = Vector2(0.6, 0.6)
[node name="Stats_Player2" parent="Control" instance=ExtResource("4_c4m18")] [node name="Stats_Player2" parent="Control" instance=ExtResource("4_c4m18")]
layout_mode = 1
scale = Vector2(0.6, 0.6) scale = Vector2(0.6, 0.6)
[connection signal="pressed" from="GameOver/VBoxContainer/Button" to="." method="_on_button_pressed"] [connection signal="pressed" from="GameOver/VBoxContainer/Button" to="." method="_on_button_pressed"]

View File

@@ -13,7 +13,6 @@ grow_vertical = 2
script = ExtResource("1_hyw8p") script = ExtResource("1_hyw8p")
[node name="ColorRect" type="ColorRect" parent="."] [node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
@@ -22,7 +21,6 @@ grow_vertical = 2
color = Color(0.513726, 0.403922, 0.27451, 1) color = Color(0.513726, 0.403922, 0.27451, 1)
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8 anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
anchor_top = 0.5 anchor_top = 0.5
@@ -36,30 +34,41 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
[node name="Start" type="Button" parent="VBoxContainer"] [node name="Start" type="Button" parent="VBoxContainer"]
layout_mode = 2 offset_right = 87.0
offset_bottom = 31.0
text = "Start text = "Start
" "
[node name="Tutorial" type="Button" parent="VBoxContainer"] [node name="Tutorial" type="Button" parent="VBoxContainer"]
layout_mode = 2 offset_top = 35.0
offset_right = 87.0
offset_bottom = 66.0
text = "Tutorial text = "Tutorial
" "
[node name="Settings" type="Button" parent="VBoxContainer"] [node name="Settings" type="Button" parent="VBoxContainer"]
layout_mode = 2 offset_top = 70.0
offset_right = 87.0
offset_bottom = 101.0
text = "Volume:" text = "Volume:"
[node name="VolSlider" type="HSlider" parent="VBoxContainer"] [node name="VolSlider" type="HSlider" parent="VBoxContainer"]
layout_mode = 2 offset_top = 105.0
offset_right = 87.0
offset_bottom = 121.0
min_value = -30.0 min_value = -30.0
max_value = 0.0 max_value = 0.0
[node name="Quit" type="Button" parent="VBoxContainer"] [node name="Quit" type="Button" parent="VBoxContainer"]
layout_mode = 2 offset_top = 125.0
offset_right = 87.0
offset_bottom = 156.0
text = "Quit" text = "Quit"
[node name="FullScreen" type="Button" parent="VBoxContainer"] [node name="FullScreen" type="Button" parent="VBoxContainer"]
layout_mode = 2 offset_top = 160.0
offset_right = 87.0
offset_bottom = 191.0
text = "Fullscreen" text = "Fullscreen"
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]

View File

@@ -100,51 +100,56 @@ test={
p1_left={ p1_left={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null)
] ]
} }
p1_right={ p1_right={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null)
] ]
} }
p1_up={ p1_up={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null)
] ]
} }
p1_down={ p1_down={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null)
] ]
} }
p1_interact={ p1_interact={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":71,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":71,"unicode":0,"echo":false,"script":null)
, Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
] ]
} }
p2_left={ p2_left={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194319,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":0,"axis_value":-1.0,"script":null)
] ]
} }
p2_right={ p2_right={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194321,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":0,"axis_value":1.0,"script":null)
] ]
} }
p2_up={ p2_up={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194320,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":1,"axis_value":-1.0,"script":null)
] ]
} }
p2_down={ p2_down={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194322,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":1,"axis":1,"axis_value":1.0,"script":null)
] ]
} }
p2_interact={ p2_interact={
"deadzone": 0.5, "deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":46,"unicode":0,"echo":false,"script":null) "events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":1,"button_index":0,"pressure":0.0,"pressed":false,"script":null)
] ]
} }
p1_extra={ p1_extra={

View File

@@ -0,0 +1,12 @@
extends SubViewport
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
size = $Label3D.rect_size
pass

View File

@@ -1,7 +1,11 @@
extends Node3D extends Node3D
func _ready():
self.get_node("play").hide()
func _on_area_3d_input_event(camera, event, position, normal, shape_idx): func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
self.scale = Vector3(1.5,1.5,1.5) self.scale = Vector3(1.5,1.5,1.5)
self.get_node("play").show()
if event is InputEventMouseButton: if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true: if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
print("Start Game") print("Start Game")
@@ -10,4 +14,5 @@ func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
func _on_area_3d_mouse_exited(): func _on_area_3d_mouse_exited():
self.get_node("play").hide()
self.scale = Vector3(1,1,1) self.scale = Vector3(1,1,1)

View File

@@ -1,8 +1,11 @@
extends Node3D extends Node3D
func _ready():
self.get_node("tutorial").hide()
func _on_area_3d_input_event(camera, event, position, normal, shape_idx): func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
self.scale = Vector3(1.5,1.5,1.5) self.scale = Vector3(1.5,1.5,1.5)
self.get_node("tutorial").show()
if event is InputEventMouseButton: if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true: if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
print("Credits/Spielbeschreibung") print("Credits/Spielbeschreibung")
@@ -13,3 +16,4 @@ func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
func _on_area_3d_mouse_exited(): func _on_area_3d_mouse_exited():
self.scale = Vector3(1,1,1) self.scale = Vector3(1,1,1)
self.get_node("tutorial").hide()

View File

@@ -1,8 +1,11 @@
extends Node3D extends Node3D
func _ready():
self.get_node("settings").hide()
func _on_area_3d_input_event(camera, event, position, normal, shape_idx): func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
print("scale") print("scale")
self.get_node("settings").show()
self.scale = Vector3(1.2,1.2,1.2) self.scale = Vector3(1.2,1.2,1.2)
if event is InputEventMouseButton: if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true: if event.button_index == MOUSE_BUTTON_LEFT and event.pressed == true:
@@ -14,3 +17,4 @@ func _on_area_3d_input_event(camera, event, position, normal, shape_idx):
func _on_area_3d_mouse_exited(): func _on_area_3d_mouse_exited():
self.scale = Vector3(1,1,1) self.scale = Vector3(1,1,1)
self.get_node("settings").hide()

9
turning_zahnrad.tscn Normal file
View File

@@ -0,0 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://cvcfn3l2wj8gb"]
[ext_resource type="PackedScene" uid="uid://dsj0fslwga5xl" path="res://Assets/Model/MainMenuObjects/zahnrad_klein.glb" id="1_rs3ag"]
[ext_resource type="Script" path="res://Assets/Model/MainMenuObjects/zahnrad_klein.gd" id="2_ade0m"]
[node name="Node3D" type="Node3D"]
[node name="zahnrad_klein" parent="." instance=ExtResource("1_rs3ag")]
script = ExtResource("2_ade0m")