diff --git a/LeifProject/simulation/WorldContainer.gd b/LeifProject/simulation/WorldContainer.gd index 1226d58..04741c8 100644 --- a/LeifProject/simulation/WorldContainer.gd +++ b/LeifProject/simulation/WorldContainer.gd @@ -27,6 +27,7 @@ var running := false # Called when the node enters the scene tree for the first time. func _ready(): + OS.set_window_maximized(true) world = WORLD_SCENE.instance() add_child(world) world.WORLD_SIZE = WORLD_SIZE diff --git a/LeifProject/simulation/WorldContainer.tscn b/LeifProject/simulation/WorldContainer.tscn index 7f07ff3..954a189 100644 --- a/LeifProject/simulation/WorldContainer.tscn +++ b/LeifProject/simulation/WorldContainer.tscn @@ -31,6 +31,8 @@ light_mode = 1 [node name="WorldContainer" type="Node2D"] script = ExtResource( 1 ) +WORLD_SIZE = Vector2( 1920, 1080 ) +WORLD_OFFSET = Vector2( 0, 0 ) [node name="WorldEnvironment" type="WorldEnvironment" parent="."] environment = SubResource( 1 )