From 19aedebc32f1a86d20715942d7f4d85064840b22 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Apr 2022 17:32:07 +0200 Subject: [PATCH] :wrench: Do not loop sounds --- project.godot | 18 +++++++++--------- src/Sounds/arrow.mp3.import | 15 +++++++++++++++ src/Sounds/branch.mp3.import | 15 +++++++++++++++ src/Sounds/death.mp3.import | 15 +++++++++++++++ 4 files changed, 54 insertions(+), 9 deletions(-) create mode 100644 src/Sounds/arrow.mp3.import create mode 100644 src/Sounds/branch.mp3.import create mode 100644 src/Sounds/death.mp3.import diff --git a/project.godot b/project.godot index 058a865..4b48cb4 100644 --- a/project.godot +++ b/project.godot @@ -43,34 +43,34 @@ window/size/resizable=false player_move_up={ "deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"unicode":0,"echo":false,"script":null) +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777232,"physical_scancode":0,"unicode":0,"echo":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":12,"pressure":0.0,"pressed":false,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":-1.0,"script":null) -, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"unicode":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null) ] } player_move_down={ "deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"unicode":0,"echo":false,"script":null) +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777234,"physical_scancode":0,"unicode":0,"echo":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":13,"pressure":0.0,"pressed":false,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":1,"axis_value":1.0,"script":null) -, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"unicode":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null) ] } player_move_left={ "deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"unicode":0,"echo":false,"script":null) +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777231,"physical_scancode":0,"unicode":0,"echo":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":14,"pressure":0.0,"pressed":false,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":-1.0,"script":null) -, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"unicode":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null) ] } player_move_right={ "deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"unicode":0,"echo":false,"script":null) +"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777233,"physical_scancode":0,"unicode":0,"echo":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":15,"pressure":0.0,"pressed":false,"script":null) , Object(InputEventJoypadMotion,"resource_local_to_scene":false,"resource_name":"","device":0,"axis":0,"axis_value":1.0,"script":null) -, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"unicode":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":0,"physical_scancode":0,"unicode":0,"echo":false,"script":null) ] } player_shoot={ @@ -82,8 +82,8 @@ player_shoot={ [layer_names] 2d_render/layer_1="Game" -2d_physics/layer_1="Entities" 2d_render/layer_2="UserInterface" +2d_physics/layer_1="Entities" 2d_physics/layer_2="Damageable" 2d_physics/layer_3="Projectiles" 2d_physics/layer_4="UI" diff --git a/src/Sounds/arrow.mp3.import b/src/Sounds/arrow.mp3.import new file mode 100644 index 0000000..45a68bb --- /dev/null +++ b/src/Sounds/arrow.mp3.import @@ -0,0 +1,15 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +path="res://.import/arrow.mp3-c704c3e091b4a843e3ab451891555a65.mp3str" + +[deps] + +source_file="res://src/Sounds/arrow.mp3" +dest_files=[ "res://.import/arrow.mp3-c704c3e091b4a843e3ab451891555a65.mp3str" ] + +[params] + +loop=false +loop_offset=0 diff --git a/src/Sounds/branch.mp3.import b/src/Sounds/branch.mp3.import new file mode 100644 index 0000000..8973914 --- /dev/null +++ b/src/Sounds/branch.mp3.import @@ -0,0 +1,15 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +path="res://.import/branch.mp3-ccbf592d2fffd882078c09b47c6fdf12.mp3str" + +[deps] + +source_file="res://src/Sounds/branch.mp3" +dest_files=[ "res://.import/branch.mp3-ccbf592d2fffd882078c09b47c6fdf12.mp3str" ] + +[params] + +loop=false +loop_offset=0 diff --git a/src/Sounds/death.mp3.import b/src/Sounds/death.mp3.import new file mode 100644 index 0000000..dcdb7b8 --- /dev/null +++ b/src/Sounds/death.mp3.import @@ -0,0 +1,15 @@ +[remap] + +importer="mp3" +type="AudioStreamMP3" +path="res://.import/death.mp3-8d542225ce7221e955aefbc77401940f.mp3str" + +[deps] + +source_file="res://src/Sounds/death.mp3" +dest_files=[ "res://.import/death.mp3-8d542225ce7221e955aefbc77401940f.mp3str" ] + +[params] + +loop=false +loop_offset=0