forked from team-sg/hero-mark-2
added saving
This commit is contained in:
parent
1ca21d438f
commit
969364ebce
40 changed files with 625 additions and 88 deletions
|
@ -16,4 +16,5 @@ func _physics_process(delta):
|
|||
func _on_Area2D_area_entered(area):
|
||||
if area.is_in_group("player"):
|
||||
if Game.score > Game.high_score: Game.high_score = Game.score
|
||||
Game.change_map(load("res://maps/demo_end.tscn"))
|
||||
Game.save()
|
||||
Game.change_map(load("res://maps/level_select.tscn"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue