From cb595326f274a36f81252f2ded83f5bc36187950 Mon Sep 17 00:00:00 2001 From: nokoe Date: Sun, 7 Jul 2024 14:51:20 +0200 Subject: add more sounds --- client/map/items/raw_steak_pot.gd | 11 ++++++++++- client/map/items/sounds/frying.ogg | Bin 0 -> 83502 bytes client/map/items/sounds/frying.ogg.import | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 client/map/items/sounds/frying.ogg create mode 100644 client/map/items/sounds/frying.ogg.import (limited to 'client/map/items') diff --git a/client/map/items/raw_steak_pot.gd b/client/map/items/raw_steak_pot.gd index 992554ea..437ba5de 100644 --- a/client/map/items/raw_steak_pot.gd +++ b/client/map/items/raw_steak_pot.gd @@ -18,4 +18,13 @@ extends Pot func _init(owned_by_: Node3D): super(owned_by_) - base.add_child(load("res://map/items/raw_steak.tscn").instantiate()) + base.add_child(preload("res://map/items/raw_steak.tscn").instantiate()) + +func progress(p: float, warn: bool): + super(p, warn) + if sound_id == null: + sound_id = Sound.item_progress( + self, + preload("res://map/items/sounds/frying.ogg"), + null + ) diff --git a/client/map/items/sounds/frying.ogg b/client/map/items/sounds/frying.ogg new file mode 100644 index 00000000..f28c2b5d Binary files /dev/null and b/client/map/items/sounds/frying.ogg differ diff --git a/client/map/items/sounds/frying.ogg.import b/client/map/items/sounds/frying.ogg.import new file mode 100644 index 00000000..c1a2f08d --- /dev/null +++ b/client/map/items/sounds/frying.ogg.import @@ -0,0 +1,19 @@ +[remap] + +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://dwxmp68tcimxm" +path="res://.godot/imported/frying.ogg-753cdb19c878434ad9938a863ed9efd3.oggvorbisstr" + +[deps] + +source_file="res://map/items/sounds/frying.ogg" +dest_files=["res://.godot/imported/frying.ogg-753cdb19c878434ad9938a863ed9efd3.oggvorbisstr"] + +[params] + +loop=true +loop_offset=0.0 +bpm=0.0 +beat_count=0 +bar_beats=4 -- cgit v1.2.3-70-g09d2