mirror of
https://github.com/tonytins/citylimits
synced 2025-05-05 14:14:49 -04:00
21 lines
483 B
GDScript
21 lines
483 B
GDScript
extends Node2D
|
|
|
|
@export var structures: Array[Structure] = []
|
|
|
|
var map:DataMap
|
|
|
|
var index:int = 0 # Index of structure being built
|
|
|
|
@export var selector:Node2D # The 'cursor'
|
|
@export var selector_container:Node2D # Node that holds a preview of the structure
|
|
@export var view_camera:Camera2D # Used for raycasting mouse
|
|
@export var tile_map:TileMap
|
|
@export var cash_display:Label
|
|
|
|
func _ready():
|
|
|
|
map = DataMap.new()
|
|
|
|
|
|
func update_cash():
|
|
cash_display.text = "$" + str(map.cash)
|