ld58-collector/game_manager.gd

21 lines
665 B
GDScript

extends Node2D
var paintings_sold = 0
var paintings_total = 0
# tracker variables for bid markers, proposing bids happens between numpad and audience
var current_bid = 0
var final_bid = 0
var target_sales: int = 0
var total_sales: int = 0
# state tracker for a given painting's auction
var bidding_open = false
func _ready() -> void:
paintings_total = randi_range(7,10)
target_sales = (paintings_total * 100000)/randf_range(1.25,2) # need to workshop the target sales generation process for more interesting numbers
print("You have " + str(paintings_total) + " paintings. Sell them for at least $" + str(target_sales) + " or face the consequences!")
pass