From ed34022bfcee20f8679927dcbd360679cd645db4 Mon Sep 17 00:00:00 2001 From: perivesta <> Date: Sun, 9 Jul 2023 17:22:50 +0200 Subject: add music --- Assets/copyright.txt | 5 +++++ Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3 | Bin 0 -> 2688050 bytes .../Komiku_-_58_-_Universe_big_takedown.mp3.import | 19 +++++++++++++++++++ Nodes/game.tscn | 8 ++++---- Nodes/main_menu.tscn | 18 +++++++++++++----- 5 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3 create mode 100644 Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3.import diff --git a/Assets/copyright.txt b/Assets/copyright.txt index a798109..eaf15c6 100644 --- a/Assets/copyright.txt +++ b/Assets/copyright.txt @@ -5,3 +5,8 @@ https://opengameart.org/content/grass-tileset-16x16 Clint Bellanger for Liberated Pixel Art https://opengameart.org/content/animated-coins + + +Public domain: +Universe big takedown by Komiku +https://www.chosic.com/download-audio/25142/ diff --git a/Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3 b/Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3 new file mode 100644 index 0000000..f7065e9 Binary files /dev/null and b/Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3 differ diff --git a/Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3.import b/Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3.import new file mode 100644 index 0000000..9b0494a --- /dev/null +++ b/Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3.import @@ -0,0 +1,19 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +uid="uid://b3saof3ftqyxw" +path="res://.godot/imported/Komiku_-_58_-_Universe_big_takedown.mp3-4f71a7779527514ab39d4caf3c3e25b9.mp3str" + +[deps] + +source_file="res://Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3" +dest_files=["res://.godot/imported/Komiku_-_58_-_Universe_big_takedown.mp3-4f71a7779527514ab39d4caf3c3e25b9.mp3str"] + +[params] + +loop=false +loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/Nodes/game.tscn b/Nodes/game.tscn index e97ba1b..84263a0 100644 --- a/Nodes/game.tscn +++ b/Nodes/game.tscn @@ -1,8 +1,7 @@ [gd_scene load_steps=4 format=3 uid="uid://cu0s2nljmac8c"] [ext_resource type="Script" path="res://Scripts/game.gd" id="1_1dait"] - -[sub_resource type="AudioStream" id="AudioStream_n3sou"] +[ext_resource type="AudioStream" uid="uid://b3saof3ftqyxw" path="res://Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3" id="2_m58v4"] [sub_resource type="LabelSettings" id="LabelSettings_ylef8"] font_size = 64 @@ -11,8 +10,9 @@ font_size = 64 script = ExtResource("1_1dait") [node name="JinglePlayer" type="AudioStreamPlayer2D" parent="."] -stream = SubResource("AudioStream_n3sou") -volume_db = 1.0 +process_mode = 3 +stream = ExtResource("2_m58v4") +autoplay = true [node name="Evaluation" type="Control" parent="."] visible = false diff --git a/Nodes/main_menu.tscn b/Nodes/main_menu.tscn index 0359346..569f6db 100644 --- a/Nodes/main_menu.tscn +++ b/Nodes/main_menu.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=17 format=3 uid="uid://b2ql8qlyaa5tr"] +[gd_scene load_steps=18 format=3 uid="uid://b2ql8qlyaa5tr"] [ext_resource type="Script" path="res://Scripts/main_menu.gd" id="2"] +[ext_resource type="AudioStream" uid="uid://b3saof3ftqyxw" path="res://Assets/sound/Komiku_-_58_-_Universe_big_takedown.mp3" id="2_tvlcl"] [ext_resource type="TileSet" uid="uid://cl8153posdeim" path="res://Assets/grass_tile_set.tres" id="3_f7ihc"] [ext_resource type="FontFile" uid="uid://b2n2cbthkca0k" path="res://Assets/fonts/format.otf" id="7"] @@ -120,6 +121,11 @@ grow_horizontal = 2 grow_vertical = 2 script = ExtResource("2") +[node name="JinglePlayer" type="AudioStreamPlayer2D" parent="."] +process_mode = 3 +stream = ExtResource("2_tvlcl") +autoplay = true + [node name="VBoxContainer" type="VBoxContainer" parent="."] layout_mode = 0 offset_left = 475.0 @@ -156,9 +162,9 @@ vertical_alignment = 1 [node name="Credits" type="VBoxContainer" parent="."] layout_mode = 0 offset_left = 100.0 -offset_top = 400.0 +offset_top = 370.0 offset_right = 183.0 -offset_bottom = 534.0 +offset_bottom = 504.0 [node name="Label" type="Label" parent="Credits"] layout_mode = 2 @@ -198,9 +204,9 @@ layer_1/tile_data = PackedInt32Array(2424836, 131072, 8, 2424837, 131072, 8, 242 [node name="Assets" type="VBoxContainer" parent="."] layout_mode = 2 offset_left = 627.0 -offset_top = 400.0 +offset_top = 370.0 offset_right = 1050.0 -offset_bottom = 537.0 +offset_bottom = 559.0 [node name="Label" type="Label" parent="Assets"] layout_mode = 2 @@ -214,6 +220,8 @@ https://opengameart.org/content/grass-tileset-16x16 Animated Coins by Clint Bellanger for Liberated Pixel Art https://opengameart.org/content/animated-coins +Universe big takedown by Komiku +https://www.chosic.com/download-audio/25142/ " [connection signal="pressed" from="VBoxContainer/StartButton" to="." method="_on_StartButton_pressed"] -- cgit