diff options
author | bd <bdunahu@operationnull.com> | 2025-05-22 18:18:46 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-05-22 18:18:46 -0400 |
commit | b318529cf9c01fca4ac2e1b7c7f7fccd0be4589a (patch) | |
tree | 4554f6c14799372133fd49d7ac7688a17a55fa97 /scripts/path_generator.gd | |
parent | f9d7b55634049e0ae6533fb94e058c2a368cd49b (diff) |
Use TileMapLayer in MapGenerator to display path
Diffstat (limited to 'scripts/path_generator.gd')
-rw-r--r-- | scripts/path_generator.gd | 12 |
1 files changed, 0 insertions, 12 deletions
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 |