Add initial parameters to game_manager
This commit is contained in:
parent
3157950a6b
commit
183cb33b71
2 changed files with 14 additions and 1 deletions
|
|
@ -1,9 +1,21 @@
|
|||
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 auction_open = false
|
||||
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
|
||||
|
|
|
|||
|
|
@ -11,5 +11,6 @@ config_version=5
|
|||
[application]
|
||||
|
||||
config/name="ld58"
|
||||
run/main_scene="uid://dt4nq0nkmjiit"
|
||||
config/features=PackedStringArray("4.5", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue