Added level mods and updated sprite imports

This commit is contained in:
Nathan Anderson
2022-08-04 18:05:48 -06:00
parent 417044bfda
commit 7843bf2b8d
19 changed files with 288 additions and 114 deletions
+13 -1
View File
@@ -1,6 +1,18 @@
extends Node2D
onready var sprite = $Sprite
onready var door_area = $DoorArea2D
signal come_home
var id : int
func _ready() -> void:
sprite.set_modulate(Color(1.0, 0.0, 0.0))
id = int(self.name[-1])
func _on_DoorArea2D_body_entered(body: Node) -> void:
if body is Neighbor:
if body.id == id:
emit_signal("come_home")