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

Add the cwaypoint command #513

Merged
merged 30 commits into from
Jan 17, 2025
Merged

Conversation

xpple
Copy link
Collaborator

@xpple xpple commented Mar 27, 2023

Closes #510. Waypoint labels are displayed at the top of the screen in the direction of their location. If two waypoint labels would overlap, they are stacked above each other. Every tick I am creating a list of the $x$-offsets of the waypoint labels calculated against the waypoint location, and player's position and orientation. You could also precompute a data structure that lets you construct a sorted list from the player's position and orientation, but complexity-wise both are $\Theta(n\log(n))$ work, where $n$ is the number of waypoints.

@xpple
Copy link
Collaborator Author

xpple commented Mar 28, 2023

The only thing that remains is actually rendering the waypoints. I'll leave that to someone else as I don't have any experience with rendering stuff like this.

@xpple xpple added the enhancement New feature or request label Jul 3, 2023
@xpple xpple marked this pull request as ready for review January 10, 2025 00:33
@xpple xpple requested a review from Earthcomputer January 10, 2025 00:33
@xpple xpple requested a review from haykam821 January 10, 2025 14:45
@Earthcomputer Earthcomputer merged commit 918f592 into Earthcomputer:fabric Jan 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Waypoints
3 participants