From b318529cf9c01fca4ac2e1b7c7f7fccd0be4589a Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 22 May 2025 18:18:46 -0400 Subject: Use TileMapLayer in MapGenerator to display path --- scripts/path_generator.gd | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'scripts/path_generator.gd') diff --git a/scripts/path_generator.gd b/scripts/path_generator.gd index e87a8f4..0e9719a 100644 --- a/scripts/path_generator.gd +++ b/scripts/path_generator.gd @@ -31,15 +31,3 @@ func generate_path(): elif choice == 2 && y > 1 && !_path.has(Vector2i(x, y - 1)): y -= 1 return _path - -func get_tile_score(tile : Vector2i) -> int: - var score : int = 0 - var x : int = tile.x - var y : int = tile.y - - score += 1 if _path.has(Vector2i(x, y - 1)) else 0 - score += 2 if _path.has(Vector2i(x + 1, y)) else 0 - score += 4 if _path.has(Vector2i(x, y + 1)) else 0 - score += 8 if _path.has(Vector2i(x - 1, y)) else 0 - - return score -- cgit v1.2.3