Workers, lighting, and loading

This commit is contained in:
2020-05-16 17:05:44 -04:00
parent 7528cba7d7
commit a26da07f43
61 changed files with 905 additions and 24 deletions

View File

@ -1,6 +1,7 @@
extends Area2D
signal interacted
var player
func _ready():
connect("body_entered", self, "_on_body_enter")
@ -8,6 +9,7 @@ func _ready():
func _on_body_enter(body):
if body.has_method("add_interactable"):
player = body
body.add_interactable(self)
func _on_body_exit(body):