Added SFX sounds

This commit is contained in:
2026-01-09 21:45:29 +03:00
parent 123510d103
commit ffdf0b0403
47 changed files with 392 additions and 72 deletions
+27
View File
@@ -0,0 +1,27 @@
class_name LockedDoor
extends Door
var _unlocked := false
func _is_key(_node: Node) -> bool:
return false
func _can_open(body: Node2D) -> bool:
if _unlocked: return true
if not body.has_node("Pickups"): return false
if not body.has_method("remove_pickup"): return false
for pickup in body.get_node("Pickups").get_children():
if _is_key(pickup):
body.remove_pickup(pickup)
_unlocked = true
return true
return false
func _can_close(_body: Node2D) -> bool:
return _unlocked