Add initial time scale
This commit is contained in:
parent
88b4495d9a
commit
637bb0a376
7 changed files with 21 additions and 0 deletions
|
@ -20,6 +20,9 @@ func _ready():
|
|||
if game_data.load_data()['debug']:
|
||||
data['resource'] = 999999
|
||||
|
||||
# Init Engine time scale
|
||||
Engine.time_scale = 1.0
|
||||
|
||||
# Set Duration & Start Timer
|
||||
duration.wait_time = config.game['duration']
|
||||
duration.start()
|
||||
|
|
|
@ -19,6 +19,9 @@ func _ready():
|
|||
if game_data.load_data()['debug']:
|
||||
data['resource'] = 999999
|
||||
|
||||
# Init Engine time scale
|
||||
Engine.time_scale = 1.0
|
||||
|
||||
# Set Duration & Start Timer
|
||||
duration.wait_time = config.game['duration']
|
||||
duration.start()
|
||||
|
|
|
@ -18,6 +18,9 @@ func _ready():
|
|||
# Debug Mode
|
||||
if game_data.load_data()['debug']:
|
||||
data['resource'] = 999999
|
||||
|
||||
# Init Engine time scale
|
||||
Engine.time_scale = 1.0
|
||||
|
||||
# Set Duration & Start Timer
|
||||
duration.wait_time = config.game['duration']
|
||||
|
|
|
@ -18,6 +18,9 @@ func _ready():
|
|||
# Debug Mode
|
||||
if game_data.load_data()['debug']:
|
||||
data['resource'] = 999999
|
||||
|
||||
# Init Engine time scale
|
||||
Engine.time_scale = 1.0
|
||||
|
||||
# Set Duration & Start Timer
|
||||
duration.wait_time = config.game['duration']
|
||||
|
|
|
@ -19,6 +19,9 @@ func _ready():
|
|||
if game_data.load_data()['debug']:
|
||||
data['resource'] = 999999
|
||||
|
||||
# Init Engine time scale
|
||||
Engine.time_scale = 1.0
|
||||
|
||||
# Set Duration & Start Timer
|
||||
duration.wait_time = config.game['duration']
|
||||
duration.start()
|
||||
|
|
|
@ -18,6 +18,9 @@ func _ready():
|
|||
# Debug Mode
|
||||
if game_data.load_data()['debug']:
|
||||
data['resource'] = 999999
|
||||
|
||||
# Init Engine time scale
|
||||
Engine.time_scale = 1.0
|
||||
|
||||
# Set Duration & Start Timer
|
||||
duration.wait_time = config.game['duration']
|
||||
|
|
|
@ -9,6 +9,9 @@ var data = game_data.load_data()
|
|||
var debug_state = 0
|
||||
|
||||
func _ready():
|
||||
# Init Engine time scale
|
||||
Engine.time_scale = 1.0
|
||||
|
||||
if data == null:
|
||||
game_data.save_data({
|
||||
"debug": false,
|
||||
|
|
Loading…
Reference in a new issue