Major collision detection improvements, more file organization, and added key interactable

This commit is contained in:
VoidTwo
2021-12-04 00:07:33 -06:00
parent ca2ea40b23
commit fcea3cee03
18 changed files with 155 additions and 59 deletions

View File

@@ -45,13 +45,18 @@ func add_currency(amount: int) -> void:
return
func add_item(item: String) -> void:
print('%s added to inventory' % [item])
return
func _on_Inventory_update_currency(amount: int) -> void:
hud.update_currency(amount)
return
func _on_Hitbox_body_entered(body: Node) -> void:
if not 'enemies' in body.get_groups():
func _on_hitbox_area_entered(area: Area2D) -> void:
if not 'enemy_hitbox' in area.get_groups():
return
if health_index != 0: