(self, x, y, val)
Sets the tile ID for a map cell.

        Args:
          x: The map cell x (column) coordinate. (0-127)
          y: The map cell y (row) coordinate. (0-63) If y > 31, Map must have a
            Gfx, and this method updates the shared data region in the Gfx.
          val: The new tile ID for the cell. (0-255)
Sets the tile ID for a map cell.
Sets the tile ID for a map cell .
def set_cell(self, x, y, val):
        """Sets the tile ID for a map cell.

        Args:
          x: The map cell x (column) coordinate. (0-127)
          y: The map cell y (row) coordinate. (0-63) If y > 31, Map must have a
            Gfx, and this method updates the shared data region in the Gfx.
          val: The new tile ID for the cell. (0-255)
        """
        assert 0 <= x <= 127
        assert (0 <= y <= 31) or ((0 <= y <= 63) and self._gfx is not None)
        assert 0 <= val <= 255
        if y <= 31:
            self._data[y * 128 + x] = val
        else:
            self._gfx._data[4096 + (y - 32) * 128 + x] = val
def set_cell ( self , x , y , val ) : assert 0 <= x <= 127 assert ( 0 <= y <= 31 ) or ( ( 0 <= y <= 63 ) and self . _gfx is not None ) assert 0 <= val <= 255 if y <= 31 : self . _data [ y * 128 + x ] = val else : self . _gfx . _data [ 4096 + ( y - 32 ) * 128 + x ] = val