a game about throwing hammers made for the github game off
1
2
3
4
5
6
7
8
extends Area2D
class_name Door

## The direction the player should go in when going through this door
var dir: Vector2i

func _on_body_entered(_p: Player) -> void:
  Events.change_level.emit(dir)