Nightly push

-added spawnrate upgrade
-added value upgrade
main
OnlyMares 2 years ago
parent e04046b4b4
commit 3f4c1725f5

@ -8,7 +8,7 @@ Anim={
"grid_snap_active": false, "grid_snap_active": false,
"grid_step": Vector2(8, 8), "grid_step": Vector2(8, 8),
"grid_visibility": 1, "grid_visibility": 1,
"ofs": Vector2(-531.369, -614.342), "ofs": Vector2(-185.733, -267.442),
"primary_grid_steps": 8, "primary_grid_steps": 8,
"show_edit_locks": true, "show_edit_locks": true,
"show_guides": true, "show_guides": true,
@ -32,7 +32,7 @@ Anim={
"snap_rotation_step": 0.261799, "snap_rotation_step": 0.261799,
"snap_scale": false, "snap_scale": false,
"snap_scale_step": 0.1, "snap_scale_step": 0.1,
"zoom": 0.5 "zoom": 0.66742
} }
3D={ 3D={
"fov": 70.01, "fov": 70.01,

@ -4,9 +4,10 @@ signal condensedCupcake1()
#Cupcake Values #Cupcake Values
var ccVanNum: int = 0 var ccVanNum: int = 0
var ccVanValue: int = 1
var ccChocNum: int = 0 var ccChocNum: int = 0
#Cupcake Prices #Cupcake Upgrade Prices
var ccVanPrice: int = 10 var ccVanPrice: int = 10
var ccVanPrice2: int = 15 var ccVanPrice2: int = 15
var ccVanPrice3: int = 15 var ccVanPrice3: int = 15
@ -22,6 +23,7 @@ var ccChocolate
var ccchoc var ccchoc
#Other #Other
@onready var timer = get_node("Cupcake Spawn Timer")
var horseAttached = true var horseAttached = true
var horse_instance var horse_instance
var mouse_position = Vector2.ZERO var mouse_position = Vector2.ZERO
@ -70,7 +72,6 @@ func collectCupcakes():
func _on_timeout(): func _on_timeout():
var timer = get_node("Cupcake Spawn Timer")
spawnCupcakes() spawnCupcakes()
collectCupcakes() collectCupcakes()
timer.start timer.start
@ -81,7 +82,7 @@ func _on_play_area_body_exited(body):
func _on_cupcake_cc_van_collected(): func _on_cupcake_cc_van_collected():
ccVanNum += 1 ccVanNum += ccVanValue
ccCount -= 1 ccCount -= 1
collectCupcakes() collectCupcakes()
@ -90,21 +91,23 @@ func _on_upgrades_one_more_cupcake():
if ccVanNum >= ccVanPrice: if ccVanNum >= ccVanPrice:
ccSpawnRate += 1 ccSpawnRate += 1
ccVanNum -= ccVanPrice ccVanNum -= ccVanPrice
ccVanPrice = ccVanPrice * 2 ccVanPrice = ccVanPrice * PI
$Upgrades/Control/ScrollContainer/VanGrid/VanUp1/Price.text = str(ccVanPrice) $Upgrades/Control/ScrollContainer/VanGrid/VanUp1/Price.text = str(ccVanPrice)
collectCupcakes() collectCupcakes()
func _on_upgrades_faster_cupcake(): func _on_upgrades_faster_cupcake():
pass # Replace with function body. if ccVanNum >= ccVanPrice2:
ccVanNum -= ccVanPrice2
ccVanPrice2 = ccVanPrice2 * PI
func _on_upgrades_condensed_cupcake(): timer.wait_time = timer.wait_time - (timer.wait_time * 0.01)
pass $Upgrades/Control/ScrollContainer/VanGrid/VanUp2/Price.text = str(ccVanPrice2)
collectCupcakes()
func _on_upgrades_condensed_cupcake_1(): func _on_upgrades_condensed_cupcake_1():
if ccVanNum >= ccVanPrice3: if ccVanNum >= ccVanPrice3:
ccVanNum -= ccVanPrice3 ccVanNum -= ccVanPrice3
ccVanPrice2 = ccVanPrice3 * 2 ccVanPrice3 = ccVanPrice3 * PI
emit_signal("condensedCupcakes1") ccVanValue += 1
$Upgrades/Control/ScrollContainer/VanGrid/VanUp3/Price.text = str(ccVanPrice3) $Upgrades/Control/ScrollContainer/VanGrid/VanUp3/Price.text = str(ccVanPrice3)
collectCupcakes()

Loading…
Cancel
Save