2d game?
Just load the whole map at start into an 2d array ... you will use bytes or ints in your fileformat anyway ... and I don't think that a 2D map exists that exceeds the RAM of a regular pc ;)
Just load the whole map at start into an 2d array ... you will use bytes or ints in your fileformat anyway ... and I don't think that a 2D map exists that exceeds the RAM of a regular pc ;)