Mostly done?
This commit is contained in:
parent
22d7326565
commit
a08c13b1a3
118 changed files with 2558 additions and 2519 deletions
|
|
@ -2,6 +2,8 @@ extends Node
|
|||
|
||||
# SETTINGS
|
||||
var play_background_music: bool = true
|
||||
var play_chop_sound: bool = true
|
||||
var play_money_sound: bool = false
|
||||
var game_continue_pressed : bool = false
|
||||
|
||||
# STRINGS
|
||||
|
|
@ -13,7 +15,7 @@ var wood_color: Color = Color(0.95, 0.6, 0.35) # Light pumpkin orange (autumn le
|
|||
var stock_color: Color = Color(0.6, 0.75, 0.95) # Light periwinkle blue (clear autumn sky)
|
||||
|
||||
# GAMEPLAY VALUES
|
||||
var target_currency: float = 1000000
|
||||
var target_currency: float = 100
|
||||
var base_sale_price: float = 30
|
||||
var base_wood_respawn: float = 5 # seconds
|
||||
var wood_per_click: float = 5
|
||||
|
|
@ -30,3 +32,17 @@ var autowood_unlock_id: int = 7
|
|||
|
||||
var premium_crafts_unlock_id: int = 8
|
||||
var reputation_unlock_id: int = 9
|
||||
|
||||
# FORMAT NUMBERS WITH COMMAS FOR DISPLAY
|
||||
func format_number(value: float) -> String:
|
||||
var num_str = str(int(value))
|
||||
var result = ""
|
||||
var length = num_str.length()
|
||||
|
||||
for i in range(length):
|
||||
result += num_str[i]
|
||||
var remaining = length - i - 1
|
||||
if remaining > 0 and remaining % 3 == 0:
|
||||
result += ","
|
||||
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue