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

[Game UI] Minimap + Full-Screen Map #64

Open
Tracked by #139
zardoy opened this issue Feb 15, 2024 · 0 comments · May be fixed by #147
Open
Tracked by #139

[Game UI] Minimap + Full-Screen Map #64

zardoy opened this issue Feb 15, 2024 · 0 comments · May be fixed by #147
Labels

Comments

@zardoy
Copy link
Owner

zardoy commented Feb 15, 2024

Implement full-screen map with fullscreen canvas.

  • X on top left to close
  • display only top-most block on the minimap
  • minimap should preserve position after reopen when its changed from the player position
  • display entities

API:
Get the color of each block:

// Player position:
bot.entity.position
// Get block name:
bot.world.getBlock(new Vec3(x, y, z))?.name // e.g. oak_log
// Skip blocks that have boundingBox === 'empty' and don't have the color (for example lava has the color so it should be rendered)

// You can get block colors from prismarine-viewer/viewer/lib/moreBlockDataGenerated.json (just import this file)

And there is a json file (fallback color - black).

Minimap in HUD should be small and look like this:

image

@zardoy zardoy added the 80 label Feb 15, 2024
@zardoy zardoy linked a pull request Jun 13, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant