Swapped sprites
This commit is contained in:
@@ -4,9 +4,8 @@ extends Node2D
|
||||
@export var tile_set: DLTileset
|
||||
@onready var tile_map: TileMapLayer = %TerrainLayer
|
||||
@onready var highlight_map: GridOverlay = %OverlayLayer
|
||||
@onready var tile_highlight: ColorRect = $TileHighlight
|
||||
|
||||
const TILE_SIZE := 48.0
|
||||
const TILE_SIZE := 100.0
|
||||
const SOURCE_ID: int = 0
|
||||
|
||||
var _pending_layout: String
|
||||
@@ -80,8 +79,3 @@ func remove_unit(unit: Unit) -> void:
|
||||
|
||||
func target_tile(coords: Vector2i) -> void:
|
||||
highlight_map.target_tile(coords)
|
||||
|
||||
|
||||
func set_highlight_enabled(enabled: bool) -> void:
|
||||
tile_highlight.visible = enabled
|
||||
tile_highlight.set_process(enabled)
|
||||
|
||||
@@ -17,8 +17,6 @@ func _ready() -> void:
|
||||
|
||||
func _on_mouse_grid_changed(coords: Vector2i) -> void:
|
||||
combat_map.target_tile(coords)
|
||||
combat_map.tile_highlight.set_grid_coords(coords)
|
||||
|
||||
|
||||
func _on_combat_requested(attacker: Unit, defender: Unit) -> void:
|
||||
var atk_coords := combat_map.world_to_coords(attacker.position)
|
||||
|
||||
Reference in New Issue
Block a user