diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-05-02 11:26:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 11:26:07 +0200 |
commit | bce3086568b28528f1aee4cb56fd8ffd6c2dfb84 (patch) | |
tree | 2b675593f4237c408bc2e75e5b22e0e80c9a9b75 /game/src/GameSession/MapView.gd | |
parent | 9f772a314dc130df95fe5e3b018a9ba60e5be5b1 (diff) | |
parent | e0874b0d92e1320108b8c2417e81f958420119ac (diff) |
Merge pull request #104 from OpenVic2Project/map-hover-tweaks
Diffstat (limited to 'game/src/GameSession/MapView.gd')
-rw-r--r-- | game/src/GameSession/MapView.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/src/GameSession/MapView.gd b/game/src/GameSession/MapView.gd index e2c8519..dc62594 100644 --- a/game/src/GameSession/MapView.gd +++ b/game/src/GameSession/MapView.gd @@ -70,9 +70,9 @@ func _ready(): _map_mesh = _map_mesh_instance.mesh # Set map mesh size and get bounds - _map_mesh.aspect_ratio = GameSingleton.get_aspect_ratio() + const pixels_per_terrain_tile : float = 64.0 _map_shader_material.set_shader_parameter(Events.ShaderManager.param_terrain_tile_factor, - float(GameSingleton.get_height()) / 128.0) + float(GameSingleton.get_height()) / pixels_per_terrain_tile) var map_mesh_aabb := _map_mesh.get_core_aabb() * _map_mesh_instance.transform _map_mesh_corner = Vector2( min(map_mesh_aabb.position.x, map_mesh_aabb.end.x), |