mirror of
https://github.com/tonytins/citylimits
synced 2025-08-14 05:34:43 -04: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)
|
||||
|
|
|
@ -46,4 +46,5 @@ func _on_CheetaBtn_toggled(button_pressed):
|
|||
turtle_btn.pressed = false
|
||||
|
||||
func _on_VRMode_pressed():
|
||||
get_tree().change_scene("res://scenes/VR Game.tscn")
|
||||
# get_tree().change_scene("res://scenes/VR Game.tscn")
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue