mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 23:48:11 +00:00
Rework anti-infinite scoring mechanisms for Challenge Mode
This commit is contained in:
@@ -10,6 +10,8 @@ var fly_wave := PI
|
||||
|
||||
var dead := false
|
||||
|
||||
var times_kicked := 0 ## For anti-infinite scoring in Challenge mode
|
||||
|
||||
func _ready() -> void:
|
||||
if has_meta("fly_2"):
|
||||
fly_wave = 0
|
||||
@@ -64,6 +66,7 @@ func summon_shell(flipped := false, launch := false) -> void:
|
||||
DiscoLevel.combo_amount += 1
|
||||
var shell = load(shell_scene).instantiate()
|
||||
shell.flipped = flipped
|
||||
shell.times_kicked = times_kicked
|
||||
shell.old_entity = self.duplicate()
|
||||
if launch:
|
||||
AudioManager.play_sfx("kick", global_position)
|
||||
|
Reference in New Issue
Block a user