Vorbereitung für Abgabe
This commit is contained in:
parent
7a36309e64
commit
4ebb2dfcb4
10 changed files with 1309 additions and 74 deletions
1199
Level_Core.tscn
1199
Level_Core.tscn
File diff suppressed because it is too large
Load diff
|
@ -3,25 +3,27 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b0s1hu8g1jvq3"
|
||||
path="res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.ctex"
|
||||
path.s3tc="res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.s3tc.ctex"
|
||||
path.etc2="res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.etc2.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
"imported_formats": ["s3tc_bptc", "etc2_astc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/kenney_prototype_textures/purple/texture_08.png"
|
||||
dest_files=["res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.ctex"]
|
||||
dest_files=["res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.s3tc.ctex", "res://.godot/imported/texture_08.png-ae3e54cc23ad438ea83a8932fe526f9f.etc2.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
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=false
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
@ -31,4 +33,4 @@ 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
|
||||
detect_3d/compress_to=0
|
||||
|
|
BIN
assets/audio/WinTada.wav
Normal file
BIN
assets/audio/WinTada.wav
Normal file
Binary file not shown.
24
assets/audio/WinTada.wav.import
Normal file
24
assets/audio/WinTada.wav.import
Normal file
|
@ -0,0 +1,24 @@
|
|||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://c3juqhof5p3nj"
|
||||
path="res://.godot/imported/WinTada.wav-3084c24b2057a1a504df50687ea91ed8.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/WinTada.wav"
|
||||
dest_files=["res://.godot/imported/WinTada.wav-3084c24b2057a1a504df50687ea91ed8.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
BIN
assets/images/qrcode-website.png
Normal file
BIN
assets/images/qrcode-website.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
34
assets/images/qrcode-website.png.import
Normal file
34
assets/images/qrcode-website.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c1tolp2tvmy0k"
|
||||
path="res://.godot/imported/qrcode-website.png-a7fba9f6e6c64747d5128466c72d80b1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/images/qrcode-website.png"
|
||||
dest_files=["res://.godot/imported/qrcode-website.png-a7fba9f6e6c64747d5128466c72d80b1.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
|
1
main.gd
1
main.gd
|
@ -7,6 +7,7 @@ var checkpoint0 = Vector3(0, 2, 1.374)
|
|||
var checkpoint1 = Vector3(-27.5, 13, 12.5)
|
||||
var checkpoint2 = Vector3(0, 22, 1.374)
|
||||
var checkpoint3 = Vector3(-50, 25, -5)
|
||||
var terminus = Vector3(-8, -8.5, 9.5)
|
||||
var checkpoint = checkpoint0
|
||||
@onready var checkpointtext = $Label_Station
|
||||
var time_accum = 0.0 # Timer accumulator
|
||||
|
|
|
@ -4,6 +4,12 @@
|
|||
[ext_resource type="FontFile" uid="uid://rswq6vrwr2nx" path="res://InstrumentSans-VariableFont_wdth,wght.ttf" id="2_05uyy"]
|
||||
[ext_resource type="FontFile" uid="uid://bulwhh7xjiip0" path="res://InstrumentSerif-Regular.ttf" id="3_p81d2"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_d3xb4"]
|
||||
font = ExtResource("3_p81d2")
|
||||
font_size = 120
|
||||
outline_size = 25
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_2nc7s"]
|
||||
font = ExtResource("2_05uyy")
|
||||
font_size = 30
|
||||
|
@ -11,12 +17,6 @@ font_color = Color(0.941176, 0.788235, 0.996078, 1)
|
|||
outline_size = 5
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_d3xb4"]
|
||||
font = ExtResource("3_p81d2")
|
||||
font_size = 120
|
||||
outline_size = 25
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="PauseMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
|
@ -42,62 +42,54 @@ anchor_right = 1.0
|
|||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_left = 20
|
||||
theme_override_constants/margin_top = 20
|
||||
theme_override_constants/margin_right = 20
|
||||
theme_override_constants/margin_bottom = 20
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 8
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 4
|
||||
|
||||
[node name="Label2" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = " paused"
|
||||
label_settings = SubResource("LabelSettings_d3xb4")
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = " press SHIFT+ENTER to unlock the mouse
|
||||
press SHIFT+G to capture the mouse"
|
||||
label_settings = SubResource("LabelSettings_2nc7s")
|
||||
|
||||
[node name="ResumeButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 10
|
||||
size_flags_vertical = 8
|
||||
theme_override_colors/font_hover_color = Color(0.909804, 0.843137, 1, 1)
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/font = ExtResource("2_05uyy")
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "resume game | Spiel fortsetzen"
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "resume game • Spiel fortsetzen"
|
||||
flat = true
|
||||
|
||||
[node name="ExitButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_hover_color = Color(0.909804, 0.843137, 1, 1)
|
||||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/font = ExtResource("2_05uyy")
|
||||
theme_override_font_sizes/font_size = 35
|
||||
text = "quit to main menu | zum Hauptmenü zurückkehren"
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "quit to main menu • zum Hauptmenü zurückkehren"
|
||||
flat = true
|
||||
|
||||
[node name="Label" type="Label" 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 = -280.5
|
||||
offset_top = 82.5
|
||||
offset_right = 280.5
|
||||
offset_bottom = 161.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "press SHIFT+ENTER to unlock the mouse
|
||||
press SHIFT+G to capture the mouse"
|
||||
label_settings = SubResource("LabelSettings_2nc7s")
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Label2" type="Label" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -211.5
|
||||
offset_top = -82.5
|
||||
offset_right = 211.5
|
||||
offset_bottom = 82.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "paused"
|
||||
label_settings = SubResource("LabelSettings_d3xb4")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
[node name="VBoxContainer2" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 4
|
||||
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/ResumeButton" to="." method="_on_resume_button_pressed"]
|
||||
[connection signal="pressed" from="MarginContainer/VBoxContainer/ResumeButton" to="." method="_on_button_pressed"]
|
||||
|
|
17
player.gd
17
player.gd
|
@ -13,7 +13,9 @@ var pitch_input := 0.0
|
|||
var levelcore: Node
|
||||
var checkpoint: Vector3
|
||||
func _ready() -> void:
|
||||
levelcore = get_node("/root/LevelCore")
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||
checkpoint = levelcore.checkpoint3
|
||||
# while not get_node_or_null("/Level_Core/LevelCore"):
|
||||
# await get_tree().process_frame # Yield until the next frame
|
||||
# levelcore = get_node("/Level_Core/LevelCore")
|
||||
|
@ -21,6 +23,7 @@ func _ready() -> void:
|
|||
# var player = get_node("/player/Player")
|
||||
|
||||
# If touches object
|
||||
|
||||
var touched = false
|
||||
|
||||
var health = 0
|
||||
|
@ -30,7 +33,6 @@ func teleport_to_checkpoint():
|
|||
var target_position = levelcore.checkpoint
|
||||
global_transform.origin = target_position
|
||||
print("teleport to ", target_position, " successful")
|
||||
# IM STUCK ON THIS
|
||||
|
||||
func _integrate_forces(state):
|
||||
# while not get_node_or_null("/Level_Core/LevelCore"):
|
||||
|
@ -65,6 +67,15 @@ func _integrate_forces(state):
|
|||
audioplayer.play()
|
||||
levelcore.checkpoint = levelcore.checkpoint3
|
||||
levelcore.checkpointtext.text = "station 3"
|
||||
|
||||
elif collider is StaticBody3D and collider.name == "StaticBody3D_T":
|
||||
print("chat we hit the end")
|
||||
levelcore = get_node("/root/LevelCore")
|
||||
if not levelcore.checkpoint == levelcore.terminus:
|
||||
audioplayer.stream = load("res://assets/audio/WinTada.wav")
|
||||
audioplayer.play()
|
||||
levelcore.checkpoint = levelcore.terminus
|
||||
levelcore.checkpointtext.text = "terminus"
|
||||
|
||||
|
||||
|
||||
|
@ -91,9 +102,9 @@ func _process(delta: float) -> void:
|
|||
input.x = Input.get_axis("move_left", "move_right")
|
||||
input.z = Input.get_axis("move_forward", "move_back")
|
||||
|
||||
# apply_central_force(twist_pivot.basis * input * 3000.0 * delta)
|
||||
apply_central_force(twist_pivot.basis * input * 3000.0 * delta)
|
||||
# apply_central_force(twist_pivot.basis * input * 6000.0 * delta)
|
||||
apply_central_force(twist_pivot.basis * input * 4500.0 * delta)
|
||||
# apply_central_force(twist_pivot.basis * input * 4500.0 * delta)
|
||||
|
||||
if Input.is_action_just_pressed("proluz_ui_pause"):
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
|
||||
|
|
|
@ -116,6 +116,10 @@ stretch_mode = 6
|
|||
layout_mode = 2
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
theme_override_constants/margin_left = 20
|
||||
theme_override_constants/margin_top = 20
|
||||
theme_override_constants/margin_right = 20
|
||||
theme_override_constants/margin_bottom = 20
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="TextureRect/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
@ -152,7 +156,7 @@ theme_override_colors/font_hover_color = Color(0.91048, 0.844425, 1, 1)
|
|||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/font = ExtResource("5_da165")
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = " play • spielen"
|
||||
text = "play • spielen"
|
||||
flat = true
|
||||
script = ExtResource("6_r8ukj")
|
||||
|
||||
|
@ -164,7 +168,7 @@ theme_override_colors/font_hover_color = Color(0.91048, 0.844425, 1, 1)
|
|||
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
||||
theme_override_fonts/font = ExtResource("5_da165")
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = " quit • beenden"
|
||||
text = "quit • beenden"
|
||||
flat = true
|
||||
script = ExtResource("7_1colc")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue