Skip to content
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.

Display and move in an area at a time instead of the whole map #3

Closed
half-ogre opened this issue Sep 22, 2013 · 1 comment
Closed

Comments

@half-ogre
Copy link
Owner

In BrowserQuest, the map is broken up into areas. You show only an area at a time, and when the sprite moves to an area's edge (and there is an adjacent area on that edge), you are moved to the adjacent area. This will require reading the area info from the TMX file.

@half-ogre
Copy link
Owner Author

BrowserQuest doesn't handle the display being resized smaller than the area size well at all, at least on a desktop client (I'm guessing it handles it better on mobile). Fortunately, we can handle this better. In windowed mode, I'm thinking we just always size the window so that it fits the area nicely. In full screen, we choose a resolution that works well for the area size. We can scale down as needed, although that should almost never be needed given the size of an area and the small tile size of 16px.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant