Added Death Counter to Custom Levels + Fixed castle bridge axe bonus sprites

This commit is contained in:
JHDev2006
2025-10-01 10:58:20 +01:00
parent fa4c1c711c
commit 51d81844d0
11 changed files with 308 additions and 267 deletions

View File

@@ -77,7 +77,9 @@ func _ready() -> void:
SaveManager.write_save(Global.current_campaign)
DiscordManager.set_discord_status("Playing " + Global.current_campaign + ": " + str(world_num) + "-" + str(Global.level_num))
$BG/Control/WorldNum.text = str(world_num) +"-" + str(Global.level_num)
if Settings.file.difficulty.inf_lives:
if [Global.GameMode.CUSTOM_LEVEL, Global.GameMode.LEVEL_EDITOR].has(Global.current_game_mode):
$BG/Control/LivesCount.text = "☠ * " + str(Global.total_deaths)
elif Settings.file.difficulty.inf_lives:
$BG/Control/LivesCount.text = "* ∞"
elif Global.lives < 100:
$BG/Control/LivesCount.text = "* " + (str(Global.lives).lpad(2, " "))