add more sounds
This commit is contained in:
BIN
assets/audio/units/ding_1.wav
LFS
Normal file
BIN
assets/audio/units/ding_1.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/ding_1.wav.import
Normal file
24
assets/audio/units/ding_1.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://bixow8k3qfiw7"
|
||||
path="res://.godot/imported/ding_1.wav-ff35579f55b7efa80592586302b8f3e1.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/ding_1.wav"
|
||||
dest_files=["res://.godot/imported/ding_1.wav-ff35579f55b7efa80592586302b8f3e1.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
|
||||
BIN
assets/audio/units/ding_2.wav
LFS
Normal file
BIN
assets/audio/units/ding_2.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/ding_2.wav.import
Normal file
24
assets/audio/units/ding_2.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://c48wmi22iwcp2"
|
||||
path="res://.godot/imported/ding_2.wav-8d6bc773a79855690b5fab197ef04ed4.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/ding_2.wav"
|
||||
dest_files=["res://.godot/imported/ding_2.wav-8d6bc773a79855690b5fab197ef04ed4.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
|
||||
BIN
assets/audio/units/ding_3.wav
LFS
Normal file
BIN
assets/audio/units/ding_3.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/ding_3.wav.import
Normal file
24
assets/audio/units/ding_3.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://n1v1tjhfih05"
|
||||
path="res://.godot/imported/ding_3.wav-3c7c93b5208033860f71cf63dafc3bcc.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/ding_3.wav"
|
||||
dest_files=["res://.godot/imported/ding_3.wav-3c7c93b5208033860f71cf63dafc3bcc.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
|
||||
BIN
assets/audio/units/ding_4.wav
LFS
Normal file
BIN
assets/audio/units/ding_4.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/ding_4.wav.import
Normal file
24
assets/audio/units/ding_4.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cbi8s225wvd5n"
|
||||
path="res://.godot/imported/ding_4.wav-05e257aae24ff4b74463526bf5d8b0fb.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/ding_4.wav"
|
||||
dest_files=["res://.godot/imported/ding_4.wav-05e257aae24ff4b74463526bf5d8b0fb.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
|
||||
BIN
assets/audio/units/tok_1.wav
LFS
Normal file
BIN
assets/audio/units/tok_1.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/tok_1.wav.import
Normal file
24
assets/audio/units/tok_1.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://0w148wlw3ijd"
|
||||
path="res://.godot/imported/tok_1.wav-d7dc5bc0c75609062d074858d97d74ee.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/tok_1.wav"
|
||||
dest_files=["res://.godot/imported/tok_1.wav-d7dc5bc0c75609062d074858d97d74ee.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
|
||||
BIN
assets/audio/units/tok_2.wav
LFS
Normal file
BIN
assets/audio/units/tok_2.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/tok_2.wav.import
Normal file
24
assets/audio/units/tok_2.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://noml5xmq138v"
|
||||
path="res://.godot/imported/tok_2.wav-256222fc5fddde8d01f8294a3651f771.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/tok_2.wav"
|
||||
dest_files=["res://.godot/imported/tok_2.wav-256222fc5fddde8d01f8294a3651f771.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
|
||||
BIN
assets/audio/units/tok_3.wav
LFS
Normal file
BIN
assets/audio/units/tok_3.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/tok_3.wav.import
Normal file
24
assets/audio/units/tok_3.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://dgi63tl2etknk"
|
||||
path="res://.godot/imported/tok_3.wav-6a49dd41ba2e9f68da396963d08adf9e.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/tok_3.wav"
|
||||
dest_files=["res://.godot/imported/tok_3.wav-6a49dd41ba2e9f68da396963d08adf9e.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
|
||||
BIN
assets/audio/units/tok_4.wav
LFS
Normal file
BIN
assets/audio/units/tok_4.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/tok_4.wav.import
Normal file
24
assets/audio/units/tok_4.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://bdvojtjbplglp"
|
||||
path="res://.godot/imported/tok_4.wav-174eb71fab747b51148cb396cd927a34.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/tok_4.wav"
|
||||
dest_files=["res://.godot/imported/tok_4.wav-174eb71fab747b51148cb396cd927a34.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
|
||||
BIN
assets/audio/units/tok_5.wav
LFS
Normal file
BIN
assets/audio/units/tok_5.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/tok_5.wav.import
Normal file
24
assets/audio/units/tok_5.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://csanrqe0h5moc"
|
||||
path="res://.godot/imported/tok_5.wav-df39aea64152713152324a1236366c20.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/tok_5.wav"
|
||||
dest_files=["res://.godot/imported/tok_5.wav-df39aea64152713152324a1236366c20.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
|
||||
BIN
assets/audio/units/tok_6.wav
LFS
Normal file
BIN
assets/audio/units/tok_6.wav
LFS
Normal file
Binary file not shown.
24
assets/audio/units/tok_6.wav.import
Normal file
24
assets/audio/units/tok_6.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://fb4rd6p07ysv"
|
||||
path="res://.godot/imported/tok_6.wav-46395d9bc11e2ac79ef0829155f8339c.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/audio/units/tok_6.wav"
|
||||
dest_files=["res://.godot/imported/tok_6.wav-46395d9bc11e2ac79ef0829155f8339c.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
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://clftjlaotf2g2"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://clftjlaotf2g2"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/anthill.gd" id="1_8k02d"]
|
||||
[ext_resource type="Material" uid="uid://f0nlf4tdpvbd" path="res://resources/materials/indicators/hover_indicator_mat.tres" id="2_44p2d"]
|
||||
[ext_resource type="Script" path="res://scripts/audio_stream_player_polyphonic.gd" id="3_vp3nf"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_x8apu"]
|
||||
|
||||
@@ -33,3 +34,7 @@ mesh = SubResource("QuadMesh_2gykr")
|
||||
|
||||
[node name="NavigationObstacle3D" type="NavigationObstacle3D" parent="."]
|
||||
radius = 0.57
|
||||
|
||||
[node name="AudioStreamPlayerPolyphonic" type="AudioStreamPlayer3D" parent="."]
|
||||
unit_size = 20.0
|
||||
script = ExtResource("3_vp3nf")
|
||||
|
||||
@@ -13,11 +13,16 @@ var ant_gatherer := preload("res://scenes/units/ant_gatherer.tscn")
|
||||
@onready var ui_origin: Node3D = $UiOrigin
|
||||
@onready var nitwits_holder: Node = $/root/World/Units/Nitwits
|
||||
@onready var gatherers_holder: Node = $/root/World/Units/Gatherers
|
||||
@onready var audio_player: AudioStreamPlayerPolyphonic = (
|
||||
$AudioStreamPlayerPolyphonic
|
||||
)
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
assert(ui_origin != null, "ui_origin missing!")
|
||||
assert(nitwits_holder != null, "nitwits_holder missing!")
|
||||
assert(gatherers_holder != null, "gatherers_holder missing!")
|
||||
assert(audio_player != null, "audio_player missing!")
|
||||
super._ready()
|
||||
honeydew += AntNitwit.get_cost()
|
||||
spawn_nitwit()
|
||||
@@ -75,4 +80,5 @@ func _create_unit(unit_scene: PackedScene, cost: int) -> ControlledUnit:
|
||||
new_pos
|
||||
)
|
||||
)
|
||||
audio_player.play_polyphonic(SoundManager.ding())
|
||||
return new_unit
|
||||
|
||||
@@ -20,10 +20,34 @@ var swoosh_streams: Array[AudioStream] = [
|
||||
preload("res://assets/audio/units/swoosh_7.wav"),
|
||||
]
|
||||
|
||||
var ding_streams: Array[AudioStream] = [
|
||||
preload("res://assets/audio/units/ding_1.wav"),
|
||||
preload("res://assets/audio/units/ding_2.wav"),
|
||||
preload("res://assets/audio/units/ding_3.wav"),
|
||||
preload("res://assets/audio/units/ding_4.wav"),
|
||||
]
|
||||
|
||||
var tok_streams: Array[AudioStream] = [
|
||||
preload("res://assets/audio/units/tok_1.wav"),
|
||||
preload("res://assets/audio/units/tok_2.wav"),
|
||||
preload("res://assets/audio/units/tok_3.wav"),
|
||||
preload("res://assets/audio/units/tok_4.wav"),
|
||||
preload("res://assets/audio/units/tok_5.wav"),
|
||||
preload("res://assets/audio/units/tok_6.wav"),
|
||||
]
|
||||
|
||||
|
||||
func pop() -> AudioStream:
|
||||
return pop_streams.pick_random() as AudioStream
|
||||
return pop_streams.pick_random()
|
||||
|
||||
|
||||
func swoosh() -> AudioStream:
|
||||
return swoosh_streams.pick_random() as AudioStream
|
||||
return swoosh_streams.pick_random()
|
||||
|
||||
|
||||
func ding() -> AudioStream:
|
||||
return ding_streams.pick_random()
|
||||
|
||||
|
||||
func tok() -> AudioStream:
|
||||
return tok_streams.pick_random()
|
||||
|
||||
@@ -188,7 +188,7 @@ func _deposit() -> void:
|
||||
var item := carrying_items.pop_back() as Honeydew
|
||||
audio_player.play_polyphonic(SoundManager.swoosh())
|
||||
await item.start_moving(anthill.global_position).moved
|
||||
audio_player.play_polyphonic(SoundManager.pop())
|
||||
audio_player.play_polyphonic(SoundManager.tok())
|
||||
item.remove_from_spawner()
|
||||
_erase_honeydew(item)
|
||||
item.queue_free()
|
||||
|
||||
Reference in New Issue
Block a user