Inital work on gamesaves/replays

This commit is contained in:
2021-01-15 21:25:55 -06:00
parent f6f2de1433
commit 37bab6ae3d
6 changed files with 80 additions and 16 deletions

View File

@@ -1,8 +1,9 @@
class IMICRTS
class Map
attr_reader :tile_size, :tiles, :ores, :spawnpoints, :width, :height
attr_reader :tile_size, :tiles, :ores, :spawnpoints, :width, :height, :map_file
def initialize(map_file:)
@map_file = map_file
@tiled_map = TiledMap.new(map_file)
@width = @tiled_map.width