Add initial time scale

This commit is contained in:
Moe Poi ~ 2023-10-29 15:07:22 +07:00
parent 88b4495d9a
commit 637bb0a376
7 changed files with 21 additions and 0 deletions

View file

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

View file

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

View file

@ -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']

View file

@ -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']

View file

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

View file

@ -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']

View file

@ -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,