Skip to content

Commit

Permalink
Fixes bug with loading a brand new game
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasdotcom committed Feb 25, 2022
1 parent f6775c2 commit d53a18f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Data.gd
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ func start() -> void: # Loads starting loader
_instance.position = Vector2(512, 300)
get_node("/root/Main/Game Field").call_deferred("add_child", _instance)
file.close()
var _level = 1
for x in balls:
spawn_ball(_level)
_level += 1
var _level = 1
for x in balls:
spawn_ball(_level)
_level += 1

func change_money(value: float) -> void: # Changes the score
money = value
Expand Down

0 comments on commit d53a18f

Please sign in to comment.