Second Map, and sound effects
This commit is contained in:
@ -16,9 +16,10 @@ func _ready() -> void:
|
||||
|
||||
if name.contains("Wall"):
|
||||
get_node("CharacterBody2D/ProgressBar").hide()
|
||||
|
||||
#loads the settings and sounds
|
||||
var config = ConfigFile.new()
|
||||
var err = config.load("user://settings.cfg")
|
||||
|
||||
if err == OK:
|
||||
var master_volume_raw = config.get_value("audio", "master_volume", 100.0)
|
||||
master_volume = clamp(master_volume_raw / 100.0, 0.0, 1.0)
|
||||
@ -94,3 +95,9 @@ func _on_timer_timeout() -> void:
|
||||
if i.get_parent().name.contains(j):
|
||||
i.get_parent().set_process(true)
|
||||
queue_free()
|
||||
|
||||
func WallRelease() -> void:
|
||||
for i in get_node("CharacterBody2D/Area2D").get_overlapping_bodies():
|
||||
for j in NAMES:
|
||||
if i.get_parent().name.contains(j):
|
||||
i.get_parent().set_process(true)
|
||||
|
Reference in New Issue
Block a user