Update cursor handling and reset functionality, improve UI elements. Reset game state cursor when needed.
This commit is contained in:
parent
6e6a231300
commit
4b5ac48e10
6 changed files with 33 additions and 4 deletions
|
|
@ -1,5 +1,8 @@
|
|||
class_name GameStateManager extends Node
|
||||
|
||||
## THIS SHOULD NOT EXIST HERE BUT I AM NOT GOING TO MAKE A NEW CLASS FOR IT RIGHT NOW
|
||||
@onready var default_cursor = preload("res://resources/cursors/pointer_a.png")
|
||||
|
||||
var placing_drone : bool = false
|
||||
|
||||
var level_timer : float = 0.0
|
||||
|
|
@ -84,3 +87,6 @@ func reset():
|
|||
gathered_nectar = 0
|
||||
drones_used = 0
|
||||
dead_bees = 0
|
||||
|
||||
func reset_cursor():
|
||||
Input.set_custom_mouse_cursor(default_cursor, Input.CURSOR_ARROW, Vector2(8, 8))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue