lib/demiurge/tmx.rb
def tmx_object_coords_by_name(name)
      obj = tmx_object_by_name(name)
      return nil unless obj
      [ obj["x"] / tile_cache_entry["tilewidth"], obj["y"] / tile_cache_entry["tileheight"] ]
    end
# Return the tile coordinates of the TMX object with the given name, or nil.
Return the tile coordinates of the TMX object with the given name, or nil.
Return the tile coordinates of the TMX object with the given name or nil .
def tmx_object_coords_by_name(name)
      obj = tmx_object_by_name(name)
      return nil unless obj
      [ obj["x"] / tile_cache_entry["tilewidth"], obj["y"] / tile_cache_entry["tileheight"] ]
    end
def tmx_object_coords_by_name ( name ) obj = tmx_object_by_name ( name ) return nil unless obj [ obj [ "x" ] / tile_cache_entry [ "tilewidth" ] , obj [ "y" ] / tile_cache_entry [ "tileheight" ] ] end
Return the tile coordinates of the TMX object with the given name, or nil.
Return the tile coordinates of the TMX object with the given name or nil .
name