1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00

加入了暂停,把波次改回原版了

This commit is contained in:
2025-08-28 21:39:15 +08:00
parent e40aef85f4
commit 77e6711358
5 changed files with 39 additions and 4 deletions
+2 -3
View File
@@ -11,9 +11,8 @@ var per: int = 0
static var current: int = 0
static var data: Array[Wave] = [
# entity, minCount, maxCount, isBoss, from, to, per
# create(preload("res://components/Characters/Hen.tscn"), 1, 5, false, 0, INF, 1),
# create(preload("res://components/Characters/Chick.tscn"), 0, 0, true, 8, INF, 5),
create(preload("res://components/Characters/Chick.tscn"), 0, 0, true, 0, INF, 1000000)
create(preload("res://components/Characters/Hen.tscn"), 1, 5, false, 0, INF, 1),
create(preload("res://components/Characters/Chick.tscn"), 0, 0, true, 8, INF, 5),
]
static func create(
+6
View File
@@ -43,6 +43,12 @@ func _physics_process(_delta):
fieldsAnimator.play("show")
if Input.is_action_just_released("showFields"):
fieldsAnimator.play("hide")
if Input.is_action_just_pressed("pause"):
if currentPanel:
if currentPanel.name == "Pause":
closeCurrentPanel()
else:
setPanel("Pause")
static func setPanel(targetName: String = ""):
currentPanel = null