diff --git a/Assets/Audio/end.wav b/Assets/Audio/end.wav new file mode 100644 index 0000000..c7caf69 Binary files /dev/null and b/Assets/Audio/end.wav differ diff --git a/Assets/Audio/end.wav.import b/Assets/Audio/end.wav.import new file mode 100644 index 0000000..605babd --- /dev/null +++ b/Assets/Audio/end.wav.import @@ -0,0 +1,24 @@ +[remap] + +importer="wav" +type="AudioStreamWAV" +uid="uid://bi0v8rsaauvux" +path="res://.godot/imported/end.wav-05dab8f02d096a5183ba688cc8bb3cdb.sample" + +[deps] + +source_file="res://Assets/Audio/end.wav" +dest_files=["res://.godot/imported/end.wav-05dab8f02d096a5183ba688cc8bb3cdb.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=0 diff --git a/Scenes/Levels/level_1.tscn b/Scenes/Levels/level_1.tscn index 7d09f92..b288a14 100644 --- a/Scenes/Levels/level_1.tscn +++ b/Scenes/Levels/level_1.tscn @@ -3,7 +3,7 @@ [ext_resource type="Script" path="res://Scripts/level.gd" id="1_0nmok"] [ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="1_4n82n"] [ext_resource type="PackedScene" uid="uid://cl7w6ndvons1a" path="res://Scenes/Props/candle_1.tscn" id="2_5hdq4"] -[ext_resource type="PackedScene" uid="uid://by2xmwcng01uy" path="res://Scenes/Props/candle_2.tscn" id="2_o33c4"] +[ext_resource type="PackedScene" uid="uid://cf7al5uln33rn" path="res://Scenes/Props/candle_2.tscn" id="2_o33c4"] [ext_resource type="PackedScene" uid="uid://b5lnjonlf4i1b" path="res://Scenes/enemy.tscn" id="4_g0oey"] [ext_resource type="PackedScene" uid="uid://0onqgygm832d" path="res://Scenes/Player/player.tscn" id="5_ik47y"] [ext_resource type="AudioStream" uid="uid://c3dy35dv368ft" path="res://Assets/Music/SisNeufPiDoozHuit.mp3" id="7_but47"] diff --git a/Scenes/ending.tscn b/Scenes/ending.tscn index 695b4af..c0cf4ec 100644 --- a/Scenes/ending.tscn +++ b/Scenes/ending.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=86 format=3 uid="uid://v0vtf1d1iusm"] +[gd_scene load_steps=87 format=3 uid="uid://drfn4qb06jfla"] [ext_resource type="Script" path="res://Scripts/ending.gd" id="1_1hyxj"] [ext_resource type="PackedScene" uid="uid://b8s2seg2lf7wo" path="res://Scenes/Tilemaps/tileset_1.tscn" id="2_yeqls"] [ext_resource type="Texture2D" uid="uid://feql3aiqdh1s" path="res://Assets/Knight/noBKG_KnightDeath_strip.png" id="3_1cug1"] +[ext_resource type="AudioStream" uid="uid://bi0v8rsaauvux" path="res://Assets/Audio/end.wav" id="3_q0fqf"] [ext_resource type="Theme" uid="uid://dr1h7to56a2pv" path="res://Themes/base_theme.tres" id="4_br77t"] [ext_resource type="Texture2D" uid="uid://ddvr5ltbo8ome" path="res://Assets/Bat/noBKG_BatFlight_strip.png" id="5_pr1ps"] [ext_resource type="Texture2D" uid="uid://dd1cbeyvlpn53" path="res://Assets/Wolf/noBKG_WolfIdle_strip.png" id="6_akp47"] @@ -580,6 +581,7 @@ offset_bottom = 82.0 theme = ExtResource("4_br77t") [node name="Fabio" type="Label" parent="."] +layout_mode = 0 offset_left = 120.0 offset_top = 136.0 offset_right = 197.0 @@ -824,4 +826,9 @@ sprite_frames = SubResource("SpriteFrames_5yana") frame_progress = 0.865996 flip_h = true +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] +stream = ExtResource("3_q0fqf") +pitch_scale = 0.4 +autoplay = true + [connection signal="pressed" from="Quit" to="." method="_on_quit_pressed"] diff --git a/Scripts/level.gd b/Scripts/level.gd index 87c4580..cf38187 100644 --- a/Scripts/level.gd +++ b/Scripts/level.gd @@ -3,7 +3,7 @@ extends Node2D var length: int = 0 var time: int = 0 var countdown: float = 0 -@onready var player : Player = $Player +@onready var player := $Player # Called when the node enters the scene tree for the first time. func _ready():