Fix pan speed and larger than 320x240 panoramas #457

merged 2 commits into from Apr 28, 2015


None yet

2 participants

Zegeri commented Apr 26, 2015

Panoramas that

  • are larger than 320x240
  • in non-looping maps
  • without the "horizontal/vertical pan" option

scroll in a very special manner. It chooses a parallax scroll speed such that it'll show the entire panorama when crossing the map, but never faster than 16 pixels per step. For this reason, we have to delay the panorama initialization until we know the image size (in spriteset_map.cpp).

These two commits should fix the opening of Link's Awakening (the RM2k3 port).

It seems that in RPG_RT if a looping maps has a large enough panorama, it isn't aligned with the top left corner. However, I won't have time in the next couple weeks to fix that.

@Ghabry Ghabry merged commit 5a18168 into EasyRPG:master Apr 28, 2015

1 check passed

default Merged build finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment