Scripts/GameManager.gd aktualisiert
All checks were successful
godot-ci export / Export Game (push) Successful in 2m5s
All checks were successful
godot-ci export / Export Game (push) Successful in 2m5s
This commit is contained in:
parent
548bf4279d
commit
1d215f28c4
1 changed files with 1 additions and 3 deletions
|
@ -98,9 +98,7 @@ func process_snake_rotation():
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
#load Config
|
#load Config
|
||||||
var err = config.load("user://config.cfg")
|
config.load("user://config.cfg")
|
||||||
if err != OK:
|
|
||||||
return
|
|
||||||
map_size = config.get_value("Game Play", "grid_size", 10)
|
map_size = config.get_value("Game Play", "grid_size", 10)
|
||||||
speed = float(config.get_value("Game Play", "speed", 1))
|
speed = float(config.get_value("Game Play", "speed", 1))
|
||||||
print(speed)
|
print(speed)
|
||||||
|
|
Loading…
Reference in a new issue