pixi-viewport
pixi-viewport copied to clipboard
Add minimap feature
How hard would it be to add a minimap feature, like seen here:
http://www.kaleadis.de/lab/04-pixi-cam/
That demo uses an old library that doesn't work with current pixi.js versions and it actually recommends this project :)
I've created a few minimaps in the past with pixi-viewport. It's relatively straightforward. You need to map the coordinates system between the two. Everything else is project-specific (since in most cases you do not want to rerender the world stage in at a smaller scale for performance reasons).
Good luck and let me know if you need any assistance!
I'm very new to game programming and cameras and all that jazz so I don't even know where to start right now :)
I was thinking more along the line of that generic minimap, which would just show the whole stage with the size and position of the viewport inside it and would let you drag it to re-position. No re-rendering of the whole stage etc. Just rectangles. Would it be possible to have an example up with that functionality? It would be immensely useful.
I could make a PR when I figure it out though :)
As this post appears higher on Google, here is a link that's worth attaching: https://github.com/davidfig/pixi-viewport/issues/305