lib/demiurge/tmx.rb
def valid_coordinate?(x, y)
      return false if x < 0 || y < 0
      return false if x >= tile_cache_entry["width"] || y >= tile_cache_entry["height"]
      return true unless tile_cache_entry["collision"]
      return tile_cache_entry["collision"][y * tile_cache_entry["width"] + x] == 0
    end
# This checks the coordinate's validity, but not relative to any
# specific person/item/whatever that could occupy the space.
#
# @return [Boolean] Whether the coordinate is valid
# @since 0.2.0
This checks the coordinate's validity, but not relative to any
specific person/item/whatever that could occupy the space.
This checks the coordinate ' s validity but not relative to any specific person / item / whatever that could occupy the space .
def valid_coordinate?(x, y)
      return false if x < 0 || y < 0
      return false if x >= tile_cache_entry["width"] || y >= tile_cache_entry["height"]
      return true unless tile_cache_entry["collision"]
      return tile_cache_entry["collision"][y * tile_cache_entry["width"] + x] == 0
    end
def valid_coordinate? ( x , y ) return false if x < 0 || y < 0 return false if x >= tile_cache_entry [ "width" ] || y >= tile_cache_entry [ "height" ] return true unless tile_cache_entry [ "collision" ] return tile_cache_entry [ "collision" ] [ y * tile_cache_entry [ "width" ] + x ] == 0 end
This checks the coordinate's validity, but not relative to any
specific person/item/whatever that could occupy the space.
This checks the coordinate ' s validity but not relative to any specific person / item / whatever that could occupy the space .
Whether the coordinate is valid
Whether the coordinate is valid
Boolean
x
y
since
None