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

WIP : Attempt to change zoom level of the minimap #13

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vadim-soude
Copy link

I want to change the zoom level of the minimap (like the vanilla way) meaning each pixel don't represent one block but, for example, four.

For now, I changed the way the flat render work, the minimap is scaled down the way I want, but I have an issue with player movement.
The minimap scrolling still goes at the same speed as the player, when it's a 1:1 ratio it's not an issue, but now it's a 1:2 ratio and it glitches out. When I go to the end of a 1:1 classic section of the world (a 128x128 zone) the visual snap to the beginning of the section and everything end-up is misaligned.

I hope someone can figure out how to fix the move part, I tried a lot of things, but everything broke 😞

Known issue : Since we are pulling blocks from a 256 by 256 zone (16*16 chunks) instead of 128 by 128 zone (8 by 8 chunks) everything is slower and the performances are way worst but it "normal"

@vadim-soude
Copy link
Author

image
And technically I cheated a little, I just took the first block of the four for each pixel instead of the most frequent, but I think it's better for performances.

@vadim-soude vadim-soude marked this pull request as draft March 29, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant