moar waves
This commit is contained in:
parent
8344c034e4
commit
10655aed3a
18 changed files with 229 additions and 13 deletions
5
main.gd
5
main.gd
|
@ -2,13 +2,14 @@ extends Node2D
|
|||
var config = ConfigFile.new()
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
func _init():
|
||||
if config.load("user://settings.cfg") == OK:
|
||||
var player = load(config.get_value("gameplay", "class", "res://player-row.tscn")).instantiate()
|
||||
player.position = Vector2(1920/2, 1080/2)
|
||||
add_child(player)
|
||||
|
||||
$Music.volume_db = linear_to_db(config.get_value("config", "music_volume", 1))
|
||||
func _ready():
|
||||
$Music.volume_db = linear_to_db(config.get_value("config", "music_volume", 1))
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue