add more sounds, fix all stuff
This commit is contained in:
34
src/scenes/floor_switch.tscn
Normal file
34
src/scenes/floor_switch.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene format=3 uid="uid://cfku712xciyp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dfigqc0flmid5" path="res://scripts/floor_switch.gd" id="1_p2yxv"]
|
||||
[ext_resource type="AudioStream" uid="uid://brtf5pf2fny20" path="res://assets/audio/sfx/buttons/btn_click_02.wav.mp3" id="2_l24xk"]
|
||||
[ext_resource type="AudioStream" uid="uid://b8hh30njhkpin" path="res://assets/audio/sfx/buttons/btn_click_06.wav.mp3" id="3_o6u0p"]
|
||||
[ext_resource type="AudioStream" uid="uid://c3in48f5t0lyx" path="res://assets/audio/sfx/buttons/btn_click_05.wav.mp3" id="4_to70e"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_c655r"]
|
||||
playback_mode = 1
|
||||
streams_count = 2
|
||||
stream_0/stream = ExtResource("2_l24xk")
|
||||
stream_1/stream = ExtResource("3_o6u0p")
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_p2yxv"]
|
||||
size = Vector2(16, 16)
|
||||
|
||||
[node name="FloorSwitch" type="Area2D" unique_id=581799630]
|
||||
collision_mask = 11
|
||||
script = ExtResource("1_p2yxv")
|
||||
|
||||
[node name="PressSwitch" type="AudioStreamPlayer2D" parent="." unique_id=594823346]
|
||||
stream = SubResource("AudioStreamRandomizer_c655r")
|
||||
max_distance = 963.0
|
||||
attenuation = 8.574176
|
||||
panning_strength = 1.04
|
||||
|
||||
[node name="ReleaseSwitch" type="AudioStreamPlayer2D" parent="." unique_id=957397628]
|
||||
stream = ExtResource("4_to70e")
|
||||
max_distance = 1530.0
|
||||
attenuation = 8.574182
|
||||
panning_strength = 1.05
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=361597954]
|
||||
shape = SubResource("RectangleShape2D_p2yxv")
|
||||
130
src/scenes/ingame_hud.tscn
Normal file
130
src/scenes/ingame_hud.tscn
Normal file
@@ -0,0 +1,130 @@
|
||||
[gd_scene format=3 uid="uid://b2tyfgkroe0d8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://da5sp508nk1tx" path="res://scripts/ingame_hud.gd" id="1_hud_script"]
|
||||
[ext_resource type="FontFile" uid="uid://bajcvmidrnc33" path="res://assets/fonts/standard_font.png" id="2_standard_font"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkisxs8ecfaul" path="res://assets/gfx/ui/hearts_filled.png" id="4_hearts_filled"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkpritx47nd4m" path="res://assets/gfx/pickups/items_n_shit.png" id="5_key_texture"]
|
||||
|
||||
[sub_resource type="Theme" id="Theme_standard_font"]
|
||||
default_font = ExtResource("2_standard_font")
|
||||
default_font_size = 10
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kmtic"]
|
||||
atlas = ExtResource("5_key_texture")
|
||||
region = Rect2(160, 208, 16, 16)
|
||||
margin = Rect2(0, -2, 0, 0)
|
||||
|
||||
[node name="IngameHUD" type="CanvasLayer" unique_id=846985801]
|
||||
script = ExtResource("1_hud_script")
|
||||
|
||||
[node name="UpperLeft" type="MarginContainer" parent="." unique_id=22752255]
|
||||
offset_right = 392.0
|
||||
offset_bottom = 92.0
|
||||
theme = SubResource("Theme_standard_font")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UpperLeft" unique_id=339113149]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainerLIFE" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=1514994213]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LabelLife" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerLIFE" unique_id=540685001]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "- LIFE -"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TextureProgressBarHP" type="TextureProgressBar" parent="UpperLeft/HBoxContainer/VBoxContainerLIFE" unique_id=883573502]
|
||||
layout_mode = 2
|
||||
value = 100.0
|
||||
texture_progress = ExtResource("4_hearts_filled")
|
||||
|
||||
[node name="VBoxContainerKeys" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=1905937328]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LabelKeys" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerKeys" unique_id=869912308]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "- KEYS -"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UpperLeft/HBoxContainer/VBoxContainerKeys" unique_id=869912309]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
|
||||
[node name="TextureRectKey" type="TextureRect" parent="UpperLeft/HBoxContainer/VBoxContainerKeys/HBoxContainer" unique_id=869912310]
|
||||
layout_mode = 2
|
||||
texture = SubResource("AtlasTexture_kmtic")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="LabelXKeys" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerKeys/HBoxContainer" unique_id=894452940]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "x"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="LabelKeysValue" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerKeys/HBoxContainer" unique_id=1691789757]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "0"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="VBoxContainerLevel" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=1905937327]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LabelLevel" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerLevel" unique_id=869912307]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "LEVEL"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="LabelLevelValue" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerLevel" unique_id=1691789756]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "1"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="VBoxContainerTime" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=2142702105]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LabelTime" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerTime" unique_id=793107824]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "TIME"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="LabelTimeValue" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerTime" unique_id=697137942]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "00:00"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="UpperRight" type="MarginContainer" parent="." unique_id=1261821969]
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -392.0
|
||||
offset_bottom = 92.0
|
||||
grow_horizontal = 0
|
||||
theme = SubResource("Theme_standard_font")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UpperRight" unique_id=332290975]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainerBoss" type="VBoxContainer" parent="UpperRight/HBoxContainer" unique_id=1933444957]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="LabelBoss" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerBoss" unique_id=1807484686]
|
||||
layout_mode = 2
|
||||
theme = SubResource("Theme_standard_font")
|
||||
text = "BOSS"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TextureProgressBarBossHP" type="TextureProgressBar" parent="UpperRight/HBoxContainer/VBoxContainerBoss" unique_id=1266602557]
|
||||
layout_mode = 2
|
||||
texture_progress = ExtResource("4_hearts_filled")
|
||||
Reference in New Issue
Block a user