summaryrefslogtreecommitdiff
path: root/map/objects/stairs.gd
blob: 3ebaf805679a2da526c9ad6f1db2b796abcb86de (plain)
1
2
3
4
5
6
7
8
9
10
11
extends Door


@export var invert_direction := true


func _on_body_entered(body: Node2D) -> void:
	if body is Player:
		await super._on_body_entered(body)
		if invert_direction:
			Game.current_direction *= -1