From 96d36cee33d6321834565f0a5d412ef95c5ceffd Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 28 Dec 2023 09:07:41 +0100 Subject: next commit --- Scenes/Maps/World.tscn | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Scenes/Maps/World.tscn') diff --git a/Scenes/Maps/World.tscn b/Scenes/Maps/World.tscn index 2414d14..f59a8ee 100644 --- a/Scenes/Maps/World.tscn +++ b/Scenes/Maps/World.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=13 format=3 uid="uid://45xfj36bdsjw"] +[gd_scene load_steps=14 format=3 uid="uid://45xfj36bdsjw"] [ext_resource type="Script" path="res://Scenes/Maps/World.gd" id="1_7jam1"] [ext_resource type="PackedScene" uid="uid://d0t04jox4oxsv" path="res://Scenes/Components/TileMap.tscn" id="2_hrdtq"] @@ -6,6 +6,7 @@ [ext_resource type="PackedScene" uid="uid://dgyk1sged38ct" path="res://Scenes/Entities/Enemies/Enemy.tscn" id="3_p230b"] [ext_resource type="Script" path="res://Scenes/Components/MapArea.gd" id="4_5p13h"] [ext_resource type="PackedScene" uid="uid://cluuq4bwb8ebs" path="res://Scenes/Components/PlayerPosition.tscn" id="6_tmdwn"] +[ext_resource type="AudioStream" uid="uid://cbcrrlrhabvlv" path="res://Assets/goblins.mp3" id="7_d7rhd"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ts8f5"] size = Vector2(304, 208) @@ -124,5 +125,12 @@ position = Vector2(152, 368) [node name="InitialPlayerPosition" type="Node2D" parent="."] position = Vector2(64, 256) -[connection signal="body_entered" from="Areas/MapArea" to="Areas/MapArea" method="_on_body_entered" flags=18] -[connection signal="body_entered" from="Areas/MapArea2" to="Areas/MapArea2" method="_on_body_entered" flags=18] +[node name="MusicBackground" type="AudioStreamPlayer" parent="."] +process_mode = 3 +stream = ExtResource("7_d7rhd") +volume_db = -15.0 +autoplay = true +mix_target = 1 + +[connection signal="body_entered" from="Areas/MapArea" to="Areas/MapArea" method="_on_body_entered"] +[connection signal="body_entered" from="Areas/MapArea2" to="Areas/MapArea2" method="_on_body_entered"] -- cgit v1.2.3