Lots of polish things and wrapping up all three levels

This commit is contained in:
Nathan Anderson
2022-08-08 15:32:57 -06:00
parent c7d42e09ce
commit 09eada305d
176 changed files with 3068 additions and 403 deletions
+11 -1
View File
@@ -6,10 +6,20 @@ onready var door_area = $DoorArea2D
signal come_home
var id : int
var NeighborSprite = {
0:"aberlin",
1:"chad",
2:"gary",
3:"maggie",
4:"sarah",
5:"steve",
6:"tim",
7:"tyler"
}
func _ready() -> void:
id = int(self.name[-1])
sprite.texture = load("res://assets/%sHouse.png" % NeighborSprite[id % 8])
func _on_DoorArea2D_body_entered(body: Node) -> void: