The second part of this function actually returns the tile in our tiles array that corresponds with the x and y coordinates in our map so that we can check if it is solid or empty. The first part of this function merely ensures that we don’t return an error if we somehow go beyond the boundaries of the map. height * TILE_SIZE then return nil end return self.
0 Comments
Leave a Reply. |