citylimits/scripts/2d/builder2d.gd
Tony Bark ceae7ebfa6 Split 2D and 3D scripts
- Moved data structure code to /scripts
2023-12-14 02:29:02 -05:00

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)