Roughed in some basic pathfinding, adapted from CitySim's

This commit is contained in:
2019-10-24 13:30:30 -05:00
parent cc040f718b
commit 75a03a7155
8 changed files with 265 additions and 27 deletions

View File

@@ -116,7 +116,7 @@ class IMICRTS
World Mouse Y: #{mouse.y}
Director Tick: #{@director.current_tick}
Tile: X: #{tile.position.x} Y: #{tile.position.y} Type: #{tile.type}
#{ tile ? "Tile: X: #{tile.position.x} Y: #{tile.position.y} Type: #{tile.type}" : ""}
).lines.map { |line| line.strip }.join("\n")
@debug_info.x = @sidebar.width + 20