Added spawner and waypoint components, added building_set_waypoint order, particle emitters can now toggle their emission, buildings can now build and spawn units, buildings now dynamically emit smoke when working and no longer when building, added player2 to default game for testing.

This commit is contained in:
2021-01-01 10:18:16 -06:00
parent 0b3897451e
commit 74458dbfd0
22 changed files with 200 additions and 36 deletions

View File

@@ -95,6 +95,10 @@ class IMICRTS
return _tiles
end
def world_to_grid(vector)
vector / @tile_size
end
def tile_at(x, y)
@tiles.dig(x, y)
end