mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
8ece2a60a5
调整实体伤害倍数的计算公式,使用平方根来平衡增长曲线 修正物品掉落数量计算,考虑难度范围的影响 修复boss掉落和玩家死亡面板的代码缩进问题
19 lines
536 B
GDScript
19 lines
536 B
GDScript
@tool
|
|
extends FullscreenPanelBase
|
|
|
|
@onready var diffEdit: HSlider = $"%diffEdit"
|
|
@onready var startBtn: Button = $"%startBtn"
|
|
@onready var levelShow: Label = $"%levelShow"
|
|
|
|
func _ready():
|
|
diffEdit.min_value = GameRule.difficultyRange.x
|
|
diffEdit.max_value = GameRule.difficultyRange.y
|
|
startBtn.pressed.connect(
|
|
func():
|
|
Wave.next()
|
|
UIState.closeCurrentPanel()
|
|
)
|
|
func _physics_process(_delta):
|
|
levelShow.text = "%d ∈ [%d, %d]" % [diffEdit.value, diffEdit.min_value, diffEdit.max_value]
|
|
GameRule.difficulty = diffEdit.value
|