Add utility strings, update game state with drone count and points calculation.

This commit is contained in:
Dan 2024-05-09 15:42:04 +01:00
parent d879ca30bd
commit 491395e6b9
7 changed files with 105 additions and 5 deletions

View file

@ -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))