Minor Cleanup

- Renamed SoundController
- Cleaned up spacings
- File endings
This commit is contained in:
2020-04-21 03:14:00 +02:00
parent 5cfe44bafe
commit d12d69f083
47 changed files with 203 additions and 245 deletions

View File

@@ -6,10 +6,12 @@ var Minion = load("res://Boss/Minion.tscn")
var elapsedTime = 0.0
func offset_vec():
var offset = 16
return Vector2((randf()-0.5)*offset, (randf()-0.5)*offset)
func _physics_process(delta):
elapsedTime += delta
if(elapsedTime>=spawnRate):
@@ -30,6 +32,7 @@ func _on_Hurtbox_area_entered(area):
func _sound_finished():
SoundControler.pub_play_effect("res://Objects/Torch/Torch.wav",4)
func _ready():
SoundControler.pub_play_effect("res://Objects/Torch/Torch.wav",4)
SoundControler._effect[4].volume_db = -20