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

overscan #6

Open
SquidPony opened this issue Apr 25, 2012 · 3 comments
Open

overscan #6

SquidPony opened this issue Apr 25, 2012 · 3 comments

Comments

@SquidPony
Copy link
Collaborator

consider allowing an overscan option where the panel displays only a certain amount of the backing grid at any given time, with the ability to adjust the offset in the backing grid for display

should allow some sort of default backing to be displayed when the edge of the backing grid is within the displaying grid

@SquidPony
Copy link
Collaborator Author

I'm marking this as high priority since with the current libgdx implementation of panels it's manually intensive to create a viewport into a large map

@tommyettinger
Copy link
Member

Agreed. I'll start on this after the 3.0.0-b7 release. The release should be tomorrow but the work on this may take a little while; I'm not sure just what will be involved and SquidPanel has become somewhat of a monstrous class.

@tommyettinger
Copy link
Member

tommyettinger commented Apr 23, 2017

This is mostly implemented now. It uses libGDX's Camera to smoothly pan over cells as they come into view, and allows truly massive dungeon levels to be explored without generating extra parts mid-way through. The actual usage is somewhat cumbersome, and I think that it may be possible to streamline it soon (possibly using StarterKit to establish the initial objects this needs, since a Camera isn't normally used by SquidPanel). This looks like this, Imgur Preview of panning Camera.

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

No branches or pull requests

2 participants