Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pan speed and larger than 320x240 panoramas #457

Merged
merged 2 commits into from
Apr 28, 2015
Merged

Conversation

Zegeri
Copy link
Member

@Zegeri 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 added a commit that referenced this pull request Apr 28, 2015
Fix pan speed and larger than 320x240 panoramas
@Ghabry Ghabry merged commit 5a18168 into EasyRPG:master Apr 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants