Major collision detection improvements, more file organization, and added key interactable
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user