idk anymore

This commit is contained in:
2024-01-24 20:55:45 +01:00
parent e7973d6086
commit 649c83030d
63 changed files with 8112 additions and 194 deletions

5
CREDITS.md Normal file
View File

@@ -0,0 +1,5 @@
# Crate texture
https://3dtextures.me/2021/02/12/wood-crate-001/
# Any other textures
https://ambientcg.com/

12
assets/models/cube.mtl Normal file
View File

@@ -0,0 +1,12 @@
# Blender 3.6.8 MTL File: 'cube.blend'
# www.blender.org
newmtl Metal
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

7221
assets/models/cube.obj Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,22 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://cfftio4fgenlo"
path="res://.godot/imported/cube.obj-c43c0880586e335c9dd0327af62d5f65.mesh"
[deps]
files=["res://.godot/imported/cube.obj-c43c0880586e335c9dd0327af62d5f65.mesh"]
source_file="res://assets/models/cube.obj"
dest_files=["res://.godot/imported/cube.obj-c43c0880586e335c9dd0327af62d5f65.mesh", "res://.godot/imported/cube.obj-c43c0880586e335c9dd0327af62d5f65.mesh"]
[params]
generate_tangents=true
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
optimize_mesh=true
force_disable_mesh_compression=false

View File

@@ -1,2 +1,2 @@
# Blender 3.6.7 MTL File: 'interior.blend'
# Blender 3.6.8 MTL File: 'interior.blend'
# www.blender.org

View File

@@ -1,57 +1,41 @@
# Blender 3.6.7
# Blender 3.6.8
# www.blender.org
mtllib interior.mtl
o Hallway
v -8.000000 -3.000000 9.000000
v -8.000000 3.000000 9.000000
v -8.000000 -3.000000 -9.000000
v -8.000000 3.000000 -9.000000
v 8.000000 -3.000000 9.000000
v 8.000000 3.000000 9.000000
v 8.000000 -3.000000 -9.000000
v 8.000000 3.000000 -9.000000
v -7.995381 -2.998268 8.994804
v -7.995381 2.998268 8.994804
v -7.995381 -2.998268 -8.994804
v -7.995381 2.998268 -8.994804
v 7.995381 -2.998268 8.994804
v 7.995381 2.998268 8.994804
v 7.995381 -2.998268 -8.994804
v 7.995381 2.998268 -8.994804
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -0.0000 -1.0000 -0.0000
vn -0.0000 1.0000 -0.0000
vt 0.375000 0.000000
vt 0.625000 0.000000
vt 0.625000 0.250000
vt 0.375000 0.250000
vt 0.625000 0.500000
vt 0.375000 0.500000
vt 0.625000 0.750000
vt 0.375000 0.750000
vt 0.625000 1.000000
vt 0.375000 1.000000
vt 0.125000 0.500000
vt 0.125000 0.750000
vt 0.875000 0.500000
vt 0.875000 0.750000
vn 1.0000 -0.0008 -0.0000
vn -0.0002 -0.0004 1.0000
vn -1.0000 -0.0000 0.0003
vn 0.0002 -0.0004 -1.0000
vn -0.0001 1.0000 -0.0000
vn 0.0001 -1.0000 -0.0000
vt 0.000000 0.333333
vt 1.000000 0.333333
vt 1.000000 0.666667
vt 0.000000 0.666667
vt 0.055556 0.333333
vt 0.944444 0.333333
vt 0.944444 0.666667
vt 0.055556 0.666667
vt 0.055556 1.000000
vt 0.055556 0.000000
vt 0.944444 0.000000
vt 0.944444 1.000000
s 0
f 1/1/1 2/2/1 4/3/1 3/4/1
f 3/4/2 4/3/2 8/5/2 7/6/2
f 7/6/3 8/5/3 6/7/3 5/8/3
f 5/8/4 6/7/4 2/9/4 1/10/4
f 3/11/5 7/6/5 5/8/5 1/12/5
f 8/5/6 4/13/6 2/14/6 6/7/6
f 9/1/3 11/4/3 12/3/3 10/2/3
f 11/4/4 15/6/4 16/5/4 12/3/4
f 15/6/1 13/8/1 14/7/1 16/5/1
f 13/8/2 9/10/2 10/9/2 14/7/2
f 11/11/6 9/12/6 13/8/6 15/6/6
f 16/5/5 14/7/5 10/14/5 12/13/5
o Cube
f 1/1/1 2/2/1 6/3/1 5/4/1
f 2/5/2 7/6/2 8/7/2 6/8/2
f 7/2/3 3/1/3 4/4/3 8/3/3
f 3/6/4 1/5/4 5/8/4 4/7/4
f 2/9/5 1/10/5 3/11/5 7/12/5
f 8/12/6 4/11/6 5/10/6 6/9/6
o Room
v -6.000000 -3.000000 7.000000
v -6.000000 3.000000 7.000000
v -6.000000 -3.000000 -7.000000
@@ -60,10 +44,10 @@ v 6.000000 -3.000000 7.000000
v 6.000000 3.000000 7.000000
v 6.000000 -3.000000 -7.000000
v 6.000000 3.000000 -7.000000
v -0.768807 -2.999966 7.000000
v -0.768807 -0.189902 7.000000
v 0.583663 -0.189902 7.000000
v 0.583663 -2.999966 7.000000
v -0.829472 -2.986924 6.926419
v -0.819950 -0.041988 6.935757
v 0.634806 -0.041988 6.935757
v 0.625284 -2.986924 6.926419
v -5.399996 -3.000000 6.300002
v -5.400000 3.000000 6.300000
v -5.400000 -3.000000 -6.300000
@@ -72,45 +56,66 @@ v 5.399996 -3.000000 6.300002
v 5.400000 3.000000 6.300000
v 5.400000 -3.000000 -6.300000
v 5.400000 3.000000 -6.300000
v -0.768807 -2.999966 6.300000
v -0.768807 -0.189902 6.300000
v 0.583663 -0.189902 6.300000
v 0.583663 -2.999966 6.300000
v -0.829472 -2.986924 6.354905
v -0.819950 -0.041988 6.364243
v 0.634806 -0.041988 6.364243
v 0.625284 -2.986924 6.354905
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vn 1.0000 -0.0000 -0.0000
vn 0.0130 -0.0011 0.9999
vn -0.0125 -0.0010 0.9999
vn -0.0000 -0.0211 0.9998
vn -0.0000 -0.0000 1.0000
vn -0.0000 -0.0479 -0.9988
vn 0.0134 0.0010 -0.9999
vn -0.0128 0.0011 -0.9999
vn -0.0000 -0.0211 -0.9998
vn -0.0000 -1.0000 -0.0000
vt 0.375000 0.000000
vt 0.625000 0.000000
vt 0.625000 0.250000
vt 0.375000 0.250000
vt 0.625000 0.500000
vt 0.375000 0.500000
vt 0.625000 0.750000
vt 0.375000 0.750000
vt 0.491257 0.883743
vt 0.508743 0.883743
vt 0.625000 1.000000
vt 0.375000 1.000000
vt 0.508743 0.866257
vt 0.491257 0.866257
vn 1.0000 -0.0032 -0.0000
vn -1.0000 0.0032 -0.0000
vt 0.000000 0.285714
vt 0.000000 0.714286
vt 1.000000 0.714286
vt 1.000000 0.285714
vt 0.071429 0.285714
vt 0.071429 0.714286
vt 0.928571 0.714286
vt 0.928571 0.285714
vt 0.440752 0.286648
vt 0.441432 0.497001
vt 0.545343 0.497001
vt 0.544663 0.286648
vt 0.050000 0.285714
vt 0.950000 0.285714
vt 0.950000 0.714286
vt 0.050000 0.714286
vt 0.114286 0.285714
vt 0.885714 0.285714
vt 0.885714 0.714286
vt 0.114286 0.714286
vt 0.114286 0.285714
vt 0.885714 0.285714
vt 0.545343 0.237118
vt 0.441432 0.237118
vt 0.441432 0.277941
vt 0.545343 0.277941
vt 0.004589 0.497001
vt 0.005256 0.286648
vt 0.046078 0.286648
vt 0.045411 0.497001
s 0
f 17/15/7 18/16/7 20/17/7 19/18/7
f 19/18/8 20/17/8 24/19/8 23/20/8
f 23/20/9 24/19/9 22/21/9 21/22/9
f 25/23/10 26/24/10 18/25/10 17/26/10
f 27/27/10 28/28/10 21/22/10 22/21/10
f 28/28/10 25/23/10 17/26/10 21/22/10
f 26/24/10 27/27/10 22/21/10 18/25/10
f 29/15/9 31/18/9 32/17/9 30/16/9
f 31/18/10 35/20/10 36/19/10 32/17/10
f 35/20/7 33/22/7 34/21/7 36/19/7
f 37/23/8 29/26/8 30/25/8 38/24/8
f 39/27/8 34/21/8 33/22/8 40/28/8
f 40/28/11 33/22/11 29/26/11 37/23/11
f 38/24/8 30/25/8 34/21/8 39/27/8
f 27/27/12 26/24/12 38/24/12 39/27/12
f 26/24/9 25/23/9 37/23/9 38/24/9
f 28/28/7 27/27/7 39/27/7 40/28/7
f 9/13/7 10/14/7 12/15/7 11/16/7
f 11/17/8 12/18/8 16/19/8 15/20/8
f 15/16/9 16/15/9 14/14/9 13/13/9
f 17/21/10 18/22/10 10/18/10 9/17/10
f 19/23/11 20/24/11 13/20/11 14/19/11
f 18/22/12 19/23/12 14/19/12 10/18/12
f 21/25/9 23/26/9 24/27/9 22/28/9
f 23/29/13 27/30/13 28/31/13 24/32/13
f 27/26/7 25/25/7 26/28/7 28/27/7
f 29/21/14 21/33/14 22/32/14 30/22/14
f 31/23/15 26/31/15 25/34/15 32/24/15
f 30/22/16 22/32/16 26/31/16 31/23/16
f 19/35/17 18/36/17 30/37/17 31/38/17
f 18/39/18 17/40/18 29/41/18 30/42/18
f 20/40/19 19/39/19 31/42/19 32/41/19

View File

@@ -31,13 +31,19 @@ animation/remove_immutable_tracks=true
import_script/path=""
_subresources={
"nodes": {
"PATH:Cube": {
"decomposition/advanced": true,
"generate/physics": true,
"physics/shape_type": 2
},
"PATH:Hallway": {
"generate/physics": true,
"physics/layer": 7,
"physics/mask": 7,
"physics/shape_type": 2
},
"PATH:Room": {
"decomposition/mode": 1,
"decomposition/normalize_mesh": true,
"decomposition/precision": 10,
"generate/physics": true,
"physics/layer": 7,
"physics/mask": 7,
"physics/shape_type": 2
}
}

View File

@@ -0,0 +1,12 @@
# Blender 3.6.8 MTL File: 'keyboard_mouse.blend'
# www.blender.org
newmtl Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

12
assets/models/screen.mtl Normal file
View File

@@ -0,0 +1,12 @@
# Blender 3.6.8 MTL File: 'screen.blend'
# www.blender.org
newmtl Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 2

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bjx2i53wtjair"
path="res://.godot/imported/crosshair.png-7b9b3cce756e3b3f3f4ae9c834fb72cf.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/crosshair.png"
dest_files=["res://.godot/imported/crosshair.png-7b9b3cce756e3b3f3f4ae9c834fb72cf.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
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=1

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b0talwkh0okwv"
path.s3tc="res://.godot/imported/wood_crate_ambientocclusion.jpg-c48df5870768347a3a44fecde49a382f.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/crate/wood_crate_ambientocclusion.jpg"
dest_files=["res://.godot/imported/wood_crate_ambientocclusion.jpg-c48df5870768347a3a44fecde49a382f.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=8
roughness/src_normal="res://assets/textures/material/crate/wood_crate_normal.jpg"
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: 312 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c2iojm41bch5c"
path.s3tc="res://.godot/imported/wood_crate_basecolor.jpg-f34cbbd1368ac2461a47780e54703537.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/crate/wood_crate_basecolor.jpg"
dest_files=["res://.godot/imported/wood_crate_basecolor.jpg-f34cbbd1368ac2461a47780e54703537.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
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: 93 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://p27mlc7rlulu"
path.s3tc="res://.godot/imported/wood_crate_height.png-44bc6a8f76e31aa36904d1cec6a59773.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/crate/wood_crate_height.png"
dest_files=["res://.godot/imported/wood_crate_height.png-44bc6a8f76e31aa36904d1cec6a59773.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
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: 254 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b36mo5qhgop5x"
path.s3tc="res://.godot/imported/wood_crate_normal.jpg-44c039c1c957985065408df54567a66d.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/crate/wood_crate_normal.jpg"
dest_files=["res://.godot/imported/wood_crate_normal.jpg-44c039c1c957985065408df54567a66d.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/textures/material/crate/wood_crate_normal.jpg"
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: 228 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cv7e1gyc1eqbi"
path.s3tc="res://.godot/imported/wood_crate_roughness.jpg-53e4a9e95e9a149073758ebab6fcf023.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/crate/wood_crate_roughness.jpg"
dest_files=["res://.godot/imported/wood_crate_roughness.jpg-53e4a9e95e9a149073758ebab6fcf023.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://n2nco62pmkou"
path.s3tc="res://.godot/imported/metal_ambientocclusion.png-bc118694bf66561750d4e71ba6b7c939.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/metal/metal_ambientocclusion.png"
dest_files=["res://.godot/imported/metal_ambientocclusion.png-bc118694bf66561750d4e71ba6b7c939.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
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: 4.5 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d3u0jnf75ituk"
path.s3tc="res://.godot/imported/metal_color.png-34d624327fb944eaa4a9f7d15840b033.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/metal/metal_color.png"
dest_files=["res://.godot/imported/metal_color.png-34d624327fb944eaa4a9f7d15840b033.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
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: 6.3 MiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cuymfyvw7rwuh"
path="res://.godot/imported/metal_displacement.png-54b98cf25d0b1f6ac49d9909995f4b37.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/material/metal/metal_displacement.png"
dest_files=["res://.godot/imported/metal_displacement.png-54b98cf25d0b1f6ac49d9909995f4b37.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
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=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cdjekmn0c5nm3"
path.s3tc="res://.godot/imported/metal_metalness.png-ea2c69c9e0a389b5f7b95bd4e03bda16.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/metal/metal_metalness.png"
dest_files=["res://.godot/imported/metal_metalness.png-ea2c69c9e0a389b5f7b95bd4e03bda16.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
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: 20 MiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://v55x1wlvlrau"
path="res://.godot/imported/metal_normaldx.png-89711f87cef8300366433bcba77ad630.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/textures/material/metal/metal_normaldx.png"
dest_files=["res://.godot/imported/metal_normaldx.png-89711f87cef8300366433bcba77ad630.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
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=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://boikn2ebf3utk"
path.s3tc="res://.godot/imported/metal_normalgl.png-85827555234aff1467245faec32c82c0.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/metal/metal_normalgl.png"
dest_files=["res://.godot/imported/metal_normalgl.png-85827555234aff1467245faec32c82c0.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://assets/textures/material/metal/metal_normalgl.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://rnhg3atx7fls"
path.s3tc="res://.godot/imported/metal_roughness.png-01b508f7b215e842c147c77a1694abbf.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/textures/material/metal/metal_roughness.png"
dest_files=["res://.godot/imported/metal_roughness.png-01b508f7b215e842c147c77a1694abbf.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
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

@@ -99,6 +99,7 @@ gravity_activate={
gravity_freeze={
"deadzone": 0.5,
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":2,"position":Vector2(338, 10),"global_position":Vector2(342, 51),"factor":1.0,"button_index":2,"canceled":false,"pressed":true,"double_click":false,"script":null)
, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":81,"key_label":0,"unicode":113,"echo":false,"script":null)
]
}
gravity_push={

View File

@@ -39,7 +39,6 @@ grow_vertical = 0
theme_override_styles/panel = SubResource("StyleBoxFlat_eoq1n")
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer/PanelContainer"]
self_modulate = Color(1, 1, 1, 0.47451)
layout_mode = 2
bbcode_enabled = true
scroll_active = false

View File

@@ -6,6 +6,7 @@
title = "Beenden"
initial_position = 2
size = Vector2i(267, 132)
borderless = true
ok_button_text = "Zum Hauptmenü"
dialog_text = "Möchtest du das Spiel beenden
und zurrück zum Hauptmenü

View File

@@ -1,10 +1,11 @@
[gd_scene load_steps=21 format=3 uid="uid://cl6gw3huejnrl"]
[gd_scene load_steps=24 format=3 uid="uid://cl6gw3huejnrl"]
[ext_resource type="Script" path="res://scripts/gravity_gun.gd" id="1_0upyy"]
[ext_resource type="ArrayMesh" uid="uid://cxw30fmp15jsd" path="res://assets/models/gun.obj" id="1_803cf"]
[ext_resource type="Environment" uid="uid://drn5fwa4uhv4m" path="res://resources/environment.tres" id="1_vtn44"]
[ext_resource type="Material" uid="uid://b6r8e4302xg1d" path="res://assets/materials/dark_metal.material" id="2_qrl87"]
[ext_resource type="Shader" path="res://shaders/pbr_glass.gdshader" id="3_aeppb"]
[ext_resource type="Texture2D" uid="uid://bjx2i53wtjair" path="res://assets/textures/crosshair.png" id="7_4s8bm"]
[ext_resource type="Texture2D" uid="uid://b4en3dw3q324p" path="res://assets/textures/circle.png" id="8_al3c7"]
[sub_resource type="World3D" id="World3D_wp4pn"]
@@ -101,6 +102,18 @@ section_length = 0.3
section_segments = 2
curve = SubResource("Curve_xucvk")
[sub_resource type="Shader" id="Shader_3q2t2"]
code = "shader_type canvas_item;
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture;
void fragment() {
COLOR.rgb = 1.0 - textureLod(SCREEN_TEXTURE, SCREEN_UV, 0.0).rgb;
COLOR.a = texture(TEXTURE , UV).a;
}"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_1bkc3"]
shader = SubResource("Shader_3q2t2")
[node name="GravityGunLayer" type="CanvasLayer"]
follow_viewport_enabled = true
script = ExtResource("1_0upyy")
@@ -187,4 +200,21 @@ trail_lifetime = 0.8
process_material = SubResource("ParticleProcessMaterial_5ccgj")
draw_pass_1 = SubResource("RibbonTrailMesh_fwaab")
[node name="TextureRect" type="TextureRect" parent="."]
material = SubResource("ShaderMaterial_1bkc3")
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -8.0
offset_top = -8.0
offset_right = 8.0
offset_bottom = 8.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("7_4s8bm")
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]

View File

@@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://scripts/menus/main_menu.gd" id="1_1osxu"]
[sub_resource type="LabelSettings" id="LabelSettings_yh38l"]
font_size = 55
font_size = 40
[sub_resource type="InputEventAction" id="InputEventAction_bc05y"]
action = &"ui_accept"
@@ -37,8 +37,10 @@ grow_vertical = 2
[node name="Title" type="Label" parent="LogoContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "Byte of Terrror"
text = "Project
Thought Experiment"
label_settings = SubResource("LabelSettings_yh38l")
horizontal_alignment = 1
[node name="StartGame" type="Button" parent="."]
layout_mode = 1

View File

@@ -1,18 +1,37 @@
[gd_scene load_steps=2 format=3 uid="uid://1hja6jk0k310"]
[gd_scene load_steps=4 format=3 uid="uid://1hja6jk0k310"]
[ext_resource type="Script" path="res://scripts/menus/pause_menu.gd" id="1_e70hy"]
[node name="PauseMenu" type="Control"]
layout_mode = 3
[sub_resource type="Shader" id="Shader_1tfvw"]
code = "shader_type canvas_item;
uniform float blur_amount : hint_range(0, 5);
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, filter_linear_mipmap;
void fragment() {
COLOR = textureLod(SCREEN_TEXTURE, SCREEN_UV, blur_amount);
}"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bxx1r"]
shader = SubResource("Shader_1tfvw")
shader_parameter/blur_amount = 2.0
[node name="PauseMenu" type="CanvasLayer"]
process_mode = 3
layer = 5
visible = false
script = ExtResource("1_e70hy")
[node name="ColorRect" type="ColorRect" parent="."]
material = SubResource("ShaderMaterial_bxx1r")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_e70hy")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
process_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
@@ -26,13 +45,20 @@ grow_horizontal = 2
grow_vertical = 2
[node name="Continue" type="Button" parent="VBoxContainer"]
process_mode = 3
layout_mode = 2
text = "Weiter spielen"
[node name="RestartLevel" type="Button" parent="VBoxContainer"]
process_mode = 3
layout_mode = 2
text = "Level neu starten"
[node name="CloseLevel" type="Button" parent="VBoxContainer"]
process_mode = 3
layout_mode = 2
text = "Beenden"
[connection signal="pressed" from="VBoxContainer/Continue" to="." method="_on_continue_pressed"]
[connection signal="pressed" from="VBoxContainer/RestartLevel" to="." method="_on_restart_level_pressed"]
[connection signal="pressed" from="VBoxContainer/CloseLevel" to="." method="_on_close_level_pressed"]

114
scenes/levels/lvl97FC.tmp Normal file
View File

@@ -0,0 +1,114 @@
[gd_scene load_steps=21 format=3 uid="uid://ckad8stc13n83"]
[ext_resource type="PackedScene" uid="uid://ddwkhfly2xyyt" path="res://assets/models/interior.obj" id="1_xs30l"]
[ext_resource type="Material" uid="uid://1w6e5sx6poff" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare.material" id="2_evxh1"]
[ext_resource type="Material" uid="uid://c6rvbga7g5f4l" path="res://assets/textures/material/tiles_white/tiles_white.material" id="7_nrt8m"]
[ext_resource type="PackedScene" uid="uid://gg5ph541e4p3" path="res://scenes/player.tscn" id="11_lls6p"]
[ext_resource type="PackedScene" uid="uid://22blfybi6n4q" path="res://scenes/objects/completion_counter.tscn" id="12_vn8j0"]
[ext_resource type="PackedScene" uid="uid://cy0x2nliyw8gw" path="res://scenes/objects/door.tscn" id="13_fhdru"]
[ext_resource type="PackedScene" uid="uid://dqy8bqf1chm8c" path="res://scenes/objects/interactables/button_stand.tscn" id="14_mpdbg"]
[ext_resource type="PackedScene" uid="uid://ced2w03t8er5k" path="res://scenes/objects/cube.tscn" id="15_40os8"]
[ext_resource type="PackedScene" uid="uid://ce8nemacxi67m" path="res://scenes/audio_subtitle_system.tscn" id="16_2wrmg"]
[ext_resource type="AudioStream" uid="uid://d3741vrmaeci5" path="res://assets/audio/voicelines/anouncer_intro_01.ogg" id="17_1a448"]
[ext_resource type="Script" path="res://scripts/voiceline_resource.gd" id="18_jxpoe"]
[ext_resource type="AudioStream" uid="uid://bi1rf1hi2fm2r" path="res://assets/audio/voicelines/anouncer_intro_02.ogg" id="19_2roq0"]
[ext_resource type="AudioStream" uid="uid://bji3bx3umohnw" path="res://assets/audio/voicelines/anouncer_intro_03.ogg" id="20_dqpxk"]
[ext_resource type="AudioStream" uid="uid://ddpvabd43s3p4" path="res://assets/audio/voicelines/anouncer_intro_04.ogg" id="21_n11nj"]
[sub_resource type="BoxMesh" id="BoxMesh_wyr1d"]
size = Vector3(4, 0.2, 5)
[sub_resource type="BoxShape3D" id="BoxShape3D_lygjd"]
size = Vector3(4, 0.2, 5)
[sub_resource type="Resource" id="Resource_u3j5u"]
script = ExtResource("18_jxpoe")
audio = ExtResource("17_1a448")
text = "Hallo!"
[sub_resource type="Resource" id="Resource_3g4yn"]
script = ExtResource("18_jxpoe")
audio = ExtResource("19_2roq0")
text = "Und willkommen zur Gehirn Test Simulation „Project Thought Experiment“."
[sub_resource type="Resource" id="Resource_6wqks"]
script = ExtResource("18_jxpoe")
audio = ExtResource("20_dqpxk")
text = "Falls Sie sich nicht erinnern: Sie haben uns, der „Neura-Förderkooperation“, Ihren gesamten Körper gespendet. "
[sub_resource type="Resource" id="Resource_im7qv"]
script = ExtResource("18_jxpoe")
audio = ExtResource("21_n11nj")
text = "Jetzt werden Sie einige Tests durchführen, um sicherzustellen, dass Sie [rainbow][wave]keinen Hirnschaden[/wave][/rainbow] haben oder ein [rainbow][wave]kompletter Idiot[/wave][/rainbow] sind, da es jetzt vollständig in unser digitales Simulationssystem integriert ist."
[node name="LVL1" type="Node3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1)
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.707107, -0.707107, 0, 0.5, 0.5, 0.707107, -0.5, -0.5, 0.707107, 0, 0, 0)
directional_shadow_blend_splits = true
sky_mode = 1
[node name="interior" parent="." instance=ExtResource("1_xs30l")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
[node name="Hallway" parent="interior" index="0"]
surface_material_override/0 = ExtResource("2_evxh1")
[node name="Room" parent="interior" index="1"]
surface_material_override/0 = ExtResource("7_nrt8m")
[node name="Player" parent="." instance=ExtResource("11_lls6p")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 5.23956)
[node name="CompletionCounter" parent="." node_paths=PackedStringArray("nodes_needed") instance=ExtResource("12_vn8j0")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0617981, 3.05379, 6.24098)
nodes_needed = [NodePath("../ButtonStand2"), NodePath("../ButtonStand3")]
[node name="Door" parent="." instance=ExtResource("13_fhdru")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0536218, 1.58488, 6.64)
[node name="ButtonStand2" parent="." instance=ExtResource("14_mpdbg")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.03802, 0.7, 4)
[node name="ButtonStand3" parent="." instance=ExtResource("14_mpdbg")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 4.7, 0.0433838)
[node name="Cube" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.51, 0)
[node name="Cube2" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.51, 0)
[node name="Cube3" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.51, -2)
[node name="Cube4" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.51, -3.93867)
[node name="Cube5" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.51, -2)
[node name="Cube6" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.96977, 0.51, -2)
[node name="DebugPlane" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 3.9, 0)
collision_layer = 7
collision_mask = 7
[node name="MeshInstance3D" type="MeshInstance3D" parent="DebugPlane"]
mesh = SubResource("BoxMesh_wyr1d")
[node name="CollisionShape3D" type="CollisionShape3D" parent="DebugPlane"]
shape = SubResource("BoxShape3D_lygjd")
[node name="AudioSubtitleSystem" parent="." instance=ExtResource("16_2wrmg")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.27434, 3)
voice_lines = Array[ExtResource("18_jxpoe")]([SubResource("Resource_u3j5u"), SubResource("Resource_3g4yn"), SubResource("Resource_6wqks"), SubResource("Resource_im7qv")])
[connection signal="lock" from="CompletionCounter" to="Door" method="close"]
[connection signal="unlock" from="CompletionCounter" to="Door" method="open"]
[editable path="interior"]
[editable path="AudioSubtitleSystem"]

View File

@@ -1,15 +1,8 @@
[gd_scene load_steps=30 format=3 uid="uid://ckad8stc13n83"]
[gd_scene load_steps=21 format=3 uid="uid://ckad8stc13n83"]
[ext_resource type="PackedScene" uid="uid://ddwkhfly2xyyt" path="res://assets/models/interior.obj" id="1_xs30l"]
[ext_resource type="Texture2D" uid="uid://bu7e43m8dswwk" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare_col.png" id="2_afued"]
[ext_resource type="Texture2D" uid="uid://dkggxcnlqd2rb" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare_ao.png" id="3_4uy3l"]
[ext_resource type="Texture2D" uid="uid://bsklw2r406fc7" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare_metalness.png" id="4_vi1ta"]
[ext_resource type="Texture2D" uid="uid://cet7gsgfgw1m2" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare_nrm.png" id="5_sjo1j"]
[ext_resource type="Texture2D" uid="uid://48js50w57wk4" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare_roughness.png" id="6_os40o"]
[ext_resource type="Texture2D" uid="uid://c72iofq6gmfaa" path="res://assets/textures/material/tiles_white/tiles_white_color.png" id="7_gqmq7"]
[ext_resource type="Texture2D" uid="uid://bs0qseslb0ilu" path="res://assets/textures/material/tiles_white/tiles_white_ambientocclusion.png" id="8_54t4l"]
[ext_resource type="Texture2D" uid="uid://cpw4myruauqs6" path="res://assets/textures/material/tiles_white/tiles_white_normal.png" id="9_5dnm4"]
[ext_resource type="Texture2D" uid="uid://uy7vdufb7mhc" path="res://assets/textures/material/tiles_white/tiles_white_roughness.png" id="10_208rc"]
[ext_resource type="Material" uid="uid://1w6e5sx6poff" path="res://assets/textures/material/tilesslatesquare/tilesslatesquare.material" id="2_evxh1"]
[ext_resource type="Material" uid="uid://c6rvbga7g5f4l" path="res://assets/textures/material/tiles_white/tiles_white.material" id="7_nrt8m"]
[ext_resource type="PackedScene" uid="uid://gg5ph541e4p3" path="res://scenes/player.tscn" id="11_lls6p"]
[ext_resource type="PackedScene" uid="uid://22blfybi6n4q" path="res://scenes/objects/completion_counter.tscn" id="12_vn8j0"]
[ext_resource type="PackedScene" uid="uid://cy0x2nliyw8gw" path="res://scenes/objects/door.tscn" id="13_fhdru"]
@@ -22,29 +15,6 @@
[ext_resource type="AudioStream" uid="uid://bji3bx3umohnw" path="res://assets/audio/voicelines/anouncer_intro_03.ogg" id="20_dqpxk"]
[ext_resource type="AudioStream" uid="uid://ddpvabd43s3p4" path="res://assets/audio/voicelines/anouncer_intro_04.ogg" id="21_n11nj"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dkjw0"]
albedo_texture = ExtResource("2_afued")
metallic = 1.0
metallic_texture = ExtResource("4_vi1ta")
roughness_texture = ExtResource("6_os40o")
normal_enabled = true
normal_texture = ExtResource("5_sjo1j")
ao_enabled = true
ao_texture = ExtResource("3_4uy3l")
uv1_scale = Vector3(35, 35, 35)
uv1_triplanar_sharpness = 0.148651
uv1_world_triplanar = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cl8ik"]
albedo_texture = ExtResource("7_gqmq7")
roughness_texture = ExtResource("10_208rc")
normal_enabled = true
normal_scale = 1.5
normal_texture = ExtResource("9_5dnm4")
ao_enabled = true
ao_texture = ExtResource("8_54t4l")
uv1_scale = Vector3(8, 30, 8)
[sub_resource type="BoxMesh" id="BoxMesh_wyr1d"]
size = Vector3(4, 0.2, 5)
@@ -64,7 +34,7 @@ text = "Und willkommen zur Gehirn Test Simulation „Project Thought Experiment
[sub_resource type="Resource" id="Resource_6wqks"]
script = ExtResource("18_jxpoe")
audio = ExtResource("20_dqpxk")
text = "Falls Sie sich nicht erinnern: Sie haben uns, der „Neura-Förderkooperation“, Ihren gesamten Körper gespendet. "
text = "Falls Sie sich nicht erinnern: Sie haben uns, der „Neura Advancement Cooperation“, Ihren gesamten Körper gespendet. "
[sub_resource type="Resource" id="Resource_im7qv"]
script = ExtResource("18_jxpoe")
@@ -83,19 +53,10 @@ sky_mode = 1
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
[node name="Hallway" parent="interior" index="0"]
surface_material_override/0 = SubResource("StandardMaterial3D_dkjw0")
surface_material_override/0 = ExtResource("2_evxh1")
[node name="StaticBody3D" parent="interior/Hallway" index="0"]
collision_layer = 7
collision_mask = 7
[node name="Cube" parent="interior" index="1"]
surface_material_override/0 = SubResource("StandardMaterial3D_cl8ik")
[node name="StaticBody3D" parent="interior/Cube" index="0"]
collision_layer = 7
collision_mask = 7
collision_priority = 2000.0
[node name="Room" parent="interior" index="1"]
surface_material_override/0 = ExtResource("7_nrt8m")
[node name="Player" parent="." instance=ExtResource("11_lls6p")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 5.23956)
@@ -105,7 +66,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0617981, 3.05379, 6.24098)
nodes_needed = [NodePath("../ButtonStand2"), NodePath("../ButtonStand3")]
[node name="Door" parent="." instance=ExtResource("13_fhdru")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.1, 1.58488, 6.64)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0536218, 1.58488, 6.64)
[node name="ButtonStand2" parent="." instance=ExtResource("14_mpdbg")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.03802, 0.7, 4)
@@ -115,33 +76,19 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 4.7, 0.0433838)
[node name="Cube" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.51, 0)
collision_priority = 2.0
[node name="Cube2" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.51, 0)
collision_priority = 2.0
[node name="Cube3" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.51, -2)
collision_priority = 2.0
[node name="Cube4" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.51, -3.93867)
collision_priority = 2.0
[node name="Cube5" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.51, -2)
collision_priority = 2.0
[node name="Cube6" parent="." instance=ExtResource("15_40os8")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.96977, 0.51, -2)
collision_priority = 2.0
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.1968, 0.51, 0)
[node name="DebugPlane" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.9, 3.9, 0)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 3.9, 0)
collision_layer = 7
collision_mask = 7
[node name="MeshInstance3D" type="MeshInstance3D" parent="DebugPlane"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 0, 0)
mesh = SubResource("BoxMesh_wyr1d")
[node name="CollisionShape3D" type="CollisionShape3D" parent="DebugPlane"]

View File

@@ -1,20 +1,27 @@
[gd_scene load_steps=4 format=3 uid="uid://ced2w03t8er5k"]
[gd_scene load_steps=6 format=3 uid="uid://ced2w03t8er5k"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_b2i4c"]
[ext_resource type="ArrayMesh" uid="uid://cfftio4fgenlo" path="res://assets/models/cube.obj" id="1_xnjii"]
[ext_resource type="Material" uid="uid://ltq25pr37xjg" path="res://assets/textures/material/crate/crate.material" id="2_26qic"]
[ext_resource type="Material" uid="uid://ctadhqfpd0j5u" path="res://assets/textures/material/metal/metal.material" id="2_oyd3r"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_rff84"]
rough = true
bounce = 0.1
absorbent = true
[sub_resource type="BoxShape3D" id="BoxShape3D_flqji"]
[sub_resource type="BoxMesh" id="BoxMesh_evnha"]
[sub_resource type="BoxShape3D" id="BoxShape3D_bsmvc"]
size = Vector3(1.1, 1.1, 1.1)
[node name="Cube" type="RigidBody3D" groups=["pushables"]]
collision_priority = 2.0
mass = 1.5
physics_material_override = SubResource("PhysicsMaterial_b2i4c")
physics_material_override = SubResource("PhysicsMaterial_rff84")
continuous_cd = true
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_flqji")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_evnha")
mesh = ExtResource("1_xnjii")
surface_material_override/0 = ExtResource("2_oyd3r")
surface_material_override/1 = ExtResource("2_26qic")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_bsmvc")

View File

@@ -52,6 +52,8 @@ script = ExtResource("1_qix0h")
mesh = SubResource("BoxMesh_8iti4")
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
collision_layer = 3
collision_mask = 3
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
shape = SubResource("BoxShape3D_pejvk")

View File

@@ -6,7 +6,8 @@
[ext_resource type="Shader" path="res://shaders/ddof.gdshader" id="2_rpqdy"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2qx4s"]
height = 1.9
radius = 0.4
height = 1.7
[sub_resource type="ShaderMaterial" id="ShaderMaterial_52bjo"]
render_priority = 0
@@ -44,7 +45,7 @@ script = ExtResource("2_jg7te")
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
collision_mask = 2
shape = SubResource("SeparationRayShape3D_fvhib")
spring_length = 10.0
spring_length = 2.5
[node name="GravityGunGoal" type="Node3D" parent="Camera3D/SpringArm3D"]
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, -8.1134e-07, 0, 9.28065)
@@ -54,7 +55,7 @@ target_position = Vector3(0, 0, -10)
debug_shape_custom_color = Color(0, 0, 0, 0)
[node name="AudioListener3D" type="AudioListener3D" parent="Camera3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0)
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0, 0)
[node name="GravityGunLayer" parent="." node_paths=PackedStringArray("player") instance=ExtResource("2_ahuce")]
player = NodePath("..")

View File

@@ -1,12 +1,33 @@
extends Node
var close_request_window: ConfirmationDialog
var pause_menu: PauseMenu
func _ready() -> void:
process_mode = Node.PROCESS_MODE_ALWAYS
close_request_window = preload("res://scenes/close_game_confirmation.tscn").instantiate()
add_child(close_request_window)
pause_menu = preload("res://scenes/gui/menus/pause_menu.tscn").instantiate()
add_child(pause_menu)
func _notification(what: int) -> void:
if what == NOTIFICATION_WM_CLOSE_REQUEST:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
close_request_window.popup()
popup_close_dialog()
if what == NOTIFICATION_APPLICATION_FOCUS_OUT:
show_pause_menu()
func popup_close_dialog() -> void:
uncapture_mouse()
close_request_window.popup()
func show_pause_menu() -> void:
uncapture_mouse()
get_tree().paused = true
pause_menu.show()
func uncapture_mouse() -> void:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
func _input(event: InputEvent) -> void:
if event.is_action_pressed("pause"):
show_pause_menu()

View File

@@ -6,25 +6,25 @@ class_name GravityGunLayer
@export var player: Player
var collider: RigidBody3D
var spring_length_cap: float
@export_range(1.5,10) var spring_length_cap: float = 10
func _on_visibility_changed() -> void:
set_physics_process(visible) # Deaktiviert die Schleife unten wenn die Gun unsichtbar ist.
func _ready() -> void:
# Führt sie auch am Anfang aus wenn sich die visibility noch nicht geändert hat
_on_visibility_changed()
await player.ready
spring_length_cap = player.spring_arm.spring_length
func _physics_process(_delta):
if player.spring_arm.get_hit_length() > 1.5 && Input.is_action_pressed("gravity_activate"):
if Input.mouse_mode == Input.MOUSE_MODE_CAPTURED && player.spring_arm.get_hit_length() > 1.5 && Input.is_action_pressed("gravity_activate"):
gravity_particles.visible = true
if collider:
collider.global_position = player.goal.global_position
if Input.is_action_just_pressed("gravity_freeze"):
collider.freeze = true
elif player.raycast.get_collider() is RigidBody3D:
collider = player.raycast.get_collider()
collider.lock_rotation = true
collider.freeze = false
lock_vertical_rotation(collider,true)
if Input.is_action_pressed("gravity_push") || Input.is_action_just_pressed("gravity_push"):
player.spring_arm.spring_length += .5
if Input.is_action_pressed("gravity_pull") || Input.is_action_just_pressed("gravity_pull"):
@@ -33,6 +33,14 @@ func _physics_process(_delta):
else:
gravity_particles.visible = false
if collider:
collider.lock_rotation = false
lock_vertical_rotation(collider,false)
collider = null
func lock_vertical_rotation(body: RigidBody3D, locked: bool):
if locked:
var rot = body.rotation
body.rotation = Vector3(0,rot.y,0)
body.axis_lock_linear_x = locked
body.axis_lock_linear_z = locked
body.axis_lock_angular_x = locked
body.axis_lock_angular_z = locked

View File

@@ -1,4 +1,5 @@
extends Control
class_name MainMenu
func _on_start_game_pressed() -> void:
pass # Replace with function body.
get_tree().change_scene_to_file("res://scenes/levels/lvl_1.tscn")

View File

@@ -1,3 +1,20 @@
extends Control
extends CanvasLayer
class_name PauseMenu
signal continued
func _on_continue_pressed() -> void:
hide()
get_tree().paused = false
continued.emit()
func _on_restart_level_pressed() -> void:
if !get_tree().current_scene is MainMenu:
get_tree().reload_current_scene()
hide()
get_tree().paused = false
func _on_close_level_pressed() -> void:
WindowManager.popup_close_dialog()

View File

@@ -19,6 +19,7 @@ func _ready() -> void:
capture()
camera.make_current()
$Camera3D/DDOF.show() # Würde den spieler im editor unsichtbar machen
WindowManager.pause_menu.continued.connect(capture)
func _physics_process(delta: float) -> void:
gun_cam.transform = camera.transform
@@ -51,16 +52,9 @@ func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion && Input.mouse_mode == Input.MOUSE_MODE_CAPTURED:
rotate_y(-event.relative.x * camera_senitivity * 0.0025)
camera.rotate_x(-event.relative.y * camera_senitivity * 0.0015)
camera.rotation_degrees.x = clamp(camera.rotation_degrees.x, -80, 80)
camera.rotation_degrees.x = clamp(camera.rotation_degrees.x, -50, 80)
if event.is_action_pressed("pause"):
capture(false)
if event.is_action_pressed("mouse_capture"):
capture()
func _notification(what: int) -> void:
if what == NOTIFICATION_APPLICATION_FOCUS_OUT:
capture(false)
func capture(value: bool = true) -> void:
if value:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.