Second Map, and sound effects

This commit is contained in:
2025-08-27 22:31:00 +02:00
parent 8108485091
commit 4ff651ff8f
21 changed files with 1863 additions and 48 deletions

View File

@ -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)