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

@@ -78,7 +78,6 @@ func edit_level() -> void:
func play_level() -> void:
Global.current_game_mode = Global.GameMode.CUSTOM_LEVEL
Settings.file.difficulty.inf_lives = 1
LevelEditor.load_play = true
$CharacterSelect.open()
await $CharacterSelect.selected
@@ -88,7 +87,6 @@ func play_level() -> void:
func online_play() -> void:
lss_level_played()
Global.current_game_mode = Global.GameMode.CUSTOM_LEVEL
Settings.file.difficulty.inf_lives = 1
LevelEditor.load_play = true
$LSSCharacterSelect.open()
await $LSSCharacterSelect.selected

View File

@@ -48,6 +48,10 @@ func setup_rating_stars() -> void:
var rating = calculate_rating()
var idx := 0
if ratings.is_empty():
for i in %RatingStars.get_children():
i.region_rect.position.x = 16
return
for i in %RatingStars.get_children():
i.region_rect.position.x = 16 if idx > rating else (0 if abs(idx - rating) >= 0.5 else 8)
idx += 1