added saving

This commit is contained in:
pennyrigate 2023-01-03 20:52:30 -05:00
parent 1ca21d438f
commit 969364ebce
40 changed files with 625 additions and 88 deletions

View file

@ -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"))