marathon mode skeleton
This commit is contained in:
parent
6bd0a81f11
commit
22a53ee1a0
9 changed files with 147 additions and 13 deletions
|
@ -51,6 +51,8 @@ var current_palette: String = "default"
|
|||
var still_playing: bool = false
|
||||
# demo hack marathon mode
|
||||
var marathon_mode: bool = true
|
||||
var marathon_score: int = 0
|
||||
var marathon_lives: int = 2
|
||||
var next_level: PackedScene
|
||||
|
||||
func _ready():
|
||||
|
@ -135,7 +137,7 @@ func tally_scores() -> void:
|
|||
perfect_bonus += 1000
|
||||
# final score
|
||||
final_score = score + arrows_bonus + collection_bonus + time_bonus + life_bonus + perfect_bonus
|
||||
print(collection_bonus)
|
||||
marathon_score += final_score
|
||||
Game.save()
|
||||
|
||||
|
||||
|
@ -164,7 +166,7 @@ func clear_collectibles() -> void:
|
|||
stars_collected.fill(false)
|
||||
shards_collected.fill(false)
|
||||
arrows = 0
|
||||
lives = 2
|
||||
lives = marathon_lives if marathon_mode else 2
|
||||
deaths = 0
|
||||
# score
|
||||
score = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue