aboutsummaryrefslogtreecommitdiff
path: root/game/src/Autoload/Events.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-29 21:00:44 +0200
committer Hop311 <hop3114@gmail.com>2023-04-29 21:00:44 +0200
commit7e2700514652212e50a006ad525e7c7ca8e7840c (patch)
tree681431640bca4f25f5e383cc7960e5ff228b47cc /game/src/Autoload/Events.gd
parent1f8545facd248bbf4ea0cd551fea5f7d9b0efdce (diff)
Terrain textures + province colour alpha channel
Diffstat (limited to 'game/src/Autoload/Events.gd')
-rw-r--r--game/src/Autoload/Events.gd10
1 files changed, 7 insertions, 3 deletions
diff --git a/game/src/Autoload/Events.gd b/game/src/Autoload/Events.gd
index f94d338..47c3b88 100644
--- a/game/src/Autoload/Events.gd
+++ b/game/src/Autoload/Events.gd
@@ -8,7 +8,9 @@ var ShaderManager = preload("Events/ShaderManager.gd").new()
const _province_identifier_file : String = "res://common/map/provinces.json"
const _water_province_file : String = "res://common/map/water.json"
const _region_file : String = "res://common/map/regions.json"
-const _province_shape_file : String = "res://common/map/provinces.png"
+const _terrain_file : String = "res://common/map/terrain.json"
+const _province_image_file : String = "res://common/map/provinces.png"
+const _terrain_image_file : String = "res://common/map/terrain.png"
# REQUIREMENTS
# * FS-333, FS-334, FS-335, FS-341
@@ -19,5 +21,7 @@ func _ready():
push_error("Failed to load water provinces")
if GameSingleton.load_region_file(_region_file) != OK:
push_error("Failed to load regions")
- if GameSingleton.load_province_shape_file(_province_shape_file) != OK:
- push_error("Failed to load province shapes")
+ if GameSingleton.load_terrain_file(_terrain_file) != OK:
+ push_error("Failed to load terrain variants")
+ if GameSingleton.load_map_images(_province_image_file, _terrain_image_file) != OK:
+ push_error("Failed to load map images")