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']:
|
if game_data.load_data()['debug']:
|
||||||
data['resource'] = 999999
|
data['resource'] = 999999
|
||||||
|
|
||||||
|
# Init Engine time scale
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
# Set Duration & Start Timer
|
# Set Duration & Start Timer
|
||||||
duration.wait_time = config.game['duration']
|
duration.wait_time = config.game['duration']
|
||||||
duration.start()
|
duration.start()
|
||||||
|
|
|
@ -19,6 +19,9 @@ func _ready():
|
||||||
if game_data.load_data()['debug']:
|
if game_data.load_data()['debug']:
|
||||||
data['resource'] = 999999
|
data['resource'] = 999999
|
||||||
|
|
||||||
|
# Init Engine time scale
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
# Set Duration & Start Timer
|
# Set Duration & Start Timer
|
||||||
duration.wait_time = config.game['duration']
|
duration.wait_time = config.game['duration']
|
||||||
duration.start()
|
duration.start()
|
||||||
|
|
|
@ -18,6 +18,9 @@ func _ready():
|
||||||
# Debug Mode
|
# Debug Mode
|
||||||
if game_data.load_data()['debug']:
|
if game_data.load_data()['debug']:
|
||||||
data['resource'] = 999999
|
data['resource'] = 999999
|
||||||
|
|
||||||
|
# Init Engine time scale
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
# Set Duration & Start Timer
|
# Set Duration & Start Timer
|
||||||
duration.wait_time = config.game['duration']
|
duration.wait_time = config.game['duration']
|
||||||
|
|
|
@ -18,6 +18,9 @@ func _ready():
|
||||||
# Debug Mode
|
# Debug Mode
|
||||||
if game_data.load_data()['debug']:
|
if game_data.load_data()['debug']:
|
||||||
data['resource'] = 999999
|
data['resource'] = 999999
|
||||||
|
|
||||||
|
# Init Engine time scale
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
# Set Duration & Start Timer
|
# Set Duration & Start Timer
|
||||||
duration.wait_time = config.game['duration']
|
duration.wait_time = config.game['duration']
|
||||||
|
|
|
@ -19,6 +19,9 @@ func _ready():
|
||||||
if game_data.load_data()['debug']:
|
if game_data.load_data()['debug']:
|
||||||
data['resource'] = 999999
|
data['resource'] = 999999
|
||||||
|
|
||||||
|
# Init Engine time scale
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
# Set Duration & Start Timer
|
# Set Duration & Start Timer
|
||||||
duration.wait_time = config.game['duration']
|
duration.wait_time = config.game['duration']
|
||||||
duration.start()
|
duration.start()
|
||||||
|
|
|
@ -18,6 +18,9 @@ func _ready():
|
||||||
# Debug Mode
|
# Debug Mode
|
||||||
if game_data.load_data()['debug']:
|
if game_data.load_data()['debug']:
|
||||||
data['resource'] = 999999
|
data['resource'] = 999999
|
||||||
|
|
||||||
|
# Init Engine time scale
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
# Set Duration & Start Timer
|
# Set Duration & Start Timer
|
||||||
duration.wait_time = config.game['duration']
|
duration.wait_time = config.game['duration']
|
||||||
|
|
|
@ -9,6 +9,9 @@ var data = game_data.load_data()
|
||||||
var debug_state = 0
|
var debug_state = 0
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
# Init Engine time scale
|
||||||
|
Engine.time_scale = 1.0
|
||||||
|
|
||||||
if data == null:
|
if data == null:
|
||||||
game_data.save_data({
|
game_data.save_data({
|
||||||
"debug": false,
|
"debug": false,
|
||||||
|
|
Loading…
Reference in a new issue