mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
Added Death Counter to Custom Levels + Fixed castle bridge axe bonus sprites
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user