From 76a09901d59815a5f6ecd3c6f966de291d0e9130 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Mon, 28 Jun 2021 23:01:50 +0200 Subject: [PATCH] Loading island 0 by default --- scenes/Game.tscn | 6 ++---- scenes/World.gd | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/scenes/Game.tscn b/scenes/Game.tscn index 35564c0..aa2b9f6 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -27,16 +27,14 @@ script = ExtResource( 1 ) [node name="Camera" type="Camera2D" parent="World"] current = true -[node name="Islands" type="Node2D" parent="World"] - [node name="Grid" type="Node2D" parent="World"] -visible = false script = ExtResource( 2 ) [node name="GridHighlight" type="Node2D" parent="World"] -visible = false script = ExtResource( 8 ) +[node name="Islands" type="Node2D" parent="World"] + [node name="UI" type="CanvasLayer" parent="World"] [node name="TopContainer" type="HBoxContainer" parent="World/UI"] diff --git a/scenes/World.gd b/scenes/World.gd index ff8f35a..557c12e 100644 --- a/scenes/World.gd +++ b/scenes/World.gd @@ -33,7 +33,7 @@ func _ready(): current_island = Island.new() Islands.add_child(current_island) - current_island.load_island("user://pirate_game_world.save") + current_island.load_island("user://pirate_game_island_0.island") # Set player starting position PlayerChar.position = Globals.HexGrid.get_hex_center(Vector2(0,0))