mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
TileMap parser can now load spawn locations, added construction yard building, added particle emitters, added smoke sprite and svg.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class IMICRTS
|
||||
class Map
|
||||
attr_reader :tile_size, :tiles, :ores, :width, :height
|
||||
attr_reader :tile_size, :tiles, :ores, :spawnpoints, :width, :height
|
||||
def initialize(map_file:)
|
||||
@tiled_map = TiledMap.new(map_file)
|
||||
|
||||
@@ -9,6 +9,7 @@ class IMICRTS
|
||||
|
||||
@tiles = {}
|
||||
@ores = {}
|
||||
@spawnpoints = @tiled_map.spawnpoints.freeze
|
||||
|
||||
@tiled_map.layers.each do |layer|
|
||||
layer.height.times do |y|
|
||||
|
||||
Reference in New Issue
Block a user