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 an HTTP endpoint for rendering the entire world map #175

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

hanzi
Copy link
Collaborator

@hanzi hanzi commented Jan 7, 2024

This adds a /world_map endpoint that tries to render a mini map of the map the player is currently standing on, as well as all connected maps.

So if the player stands somewhere outside, this should more or less render the entire region as all those maps are connected to each other.

It also displays all 'object templates' (which are entities in the world that might exist, depending on a flag -- the flags aren't checked, so this view will show all potential objects.)

The page isn't updated as the player moves around and generally isn't all that useful, but it serves as a bit of a test case for various map-related functions.

And it looks pretty.

emerald_map

kanto_map

@hanzi hanzi requested a review from 40Cakes January 7, 2024 15:15
This adds a `/world_map` endpoint that tries to render a mini map of the map the player is currently standing on, as well as all connected maps.

So if the player stands somewhere outside, this should more or less render the entire region as all those maps are connected to each other.

It also displays all 'object templates' (which are entities in the world that _might_ exist, depending on a flag -- the flags aren't checked, so this view will show _all_ potential objects.)

The page isn't updated as the player moves around and generally isn't all that useful, but it serves as a bit of a test case for various map-related functions.

And it looks pretty.
@hanzi hanzi merged commit 3fc3ce0 into 40Cakes:main Jan 17, 2024
1 check passed
@hanzi hanzi deleted the world-map branch January 17, 2024 09:52
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.

2 participants