Add utility strings, update game state with drone count and points calculation.
This commit is contained in:
parent
d879ca30bd
commit
491395e6b9
7 changed files with 105 additions and 5 deletions
|
|
@ -53,6 +53,7 @@ func spawn_drone(drone_type : String) -> void:
|
|||
new_drone = dancer_drone.instantiate()
|
||||
# Hide the dancer button
|
||||
%SpawnDancer.visible = false
|
||||
GameState.game_start() # Start the game when the first dancer is placed
|
||||
elif drone_type == "distractor":
|
||||
new_drone = distractor_drone.instantiate()
|
||||
elif drone_type == "collector":
|
||||
|
|
@ -73,6 +74,8 @@ func spawn_drone(drone_type : String) -> void:
|
|||
|
||||
reset_node_highlights()
|
||||
|
||||
GameState.add_drone() ## Increase drone count on the game state
|
||||
|
||||
func place_drone(drone_type : String) -> void:
|
||||
if !spawning_drone:
|
||||
Input.set_custom_mouse_cursor(cursor, Input.CURSOR_ARROW, Vector2(32, 32))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue