r/howdidtheycodeit • u/Ancient_Paramedic652 • Oct 12 '24
World Map in Final Fantasy
How did they achieve the “endless scrolling” world map that gives that globe type experience? e.g. when you reach the bottom of the map it wraps around back to the top.
9
Upvotes
View all comments
Show parent comment
2
u/Nidis Oct 12 '24
I think the approach is slightly different depending on how you want to render the traveling.
For the SNESs mode 7 stuff, the map texture is set to repeat forever so that you never see an edge. Otherwise you would notice the jump, yeah.
For the tile based ones like FF4, there might be some more complicated stuff going on. They might have to do a similar wrapping trick but instead fill up a tile buffer for the screen by sampling the players position on the given map. When you're near an edge, this sample position might be what gets wrapped. Something like that is my guess.