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

Better WorldChunk.findSnakeSpawnPosition implementation #96

Open
tim-we opened this issue Oct 18, 2021 · 1 comment
Open

Better WorldChunk.findSnakeSpawnPosition implementation #96

tim-we opened this issue Oct 18, 2021 · 1 comment
Assignees
Labels

Comments

@tim-we
Copy link
Member

tim-we commented Oct 18, 2021

Current implementation:
https://github.com/KielerGames/snake-royale/blob/3ff5260f689f701cadaa652d5815c8c4ed8b66c7/server/src/main/java/game/world/WorldChunk.java#L125-L148

This works for now but should perhaps be replaced by an algorithm that is guaranteed to find a valid spawn position within a chunk if it exists.

@tim-we tim-we added enhancement New feature or request Server labels Oct 18, 2021
@KilianIvoKoeln289
Copy link
Collaborator

Also avoid spawning to close to the edge of the map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants