mirror of
https://github.com/tonytins/citylimits
synced 2025-12-17 05:34:42 -05:00
Rebinded buttons.
- WIP and very primitive power grid logic
This commit is contained in:
parent
abf160838c
commit
44386959d3
3 changed files with 195 additions and 13 deletions
|
|
@ -52,11 +52,11 @@ func _get_budget():
|
|||
SimData.budget += total_income
|
||||
SimData.res_income = total_income
|
||||
|
||||
func _on_Zone_body_entered(body):
|
||||
func _on_Zone_body_entered(body: Node):
|
||||
if SimData.has_power and can_grab == false:
|
||||
quarters.start()
|
||||
_animante_sprite()
|
||||
|
||||
func _on_Zone_body_exited(body):
|
||||
func _on_Zone_body_exited(body: Node):
|
||||
quarters.stop()
|
||||
_animante_sprite(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue