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

Documentation "Coming soon!" should link to actual documentation #2

Open
vchelaru opened this issue May 2, 2024 · 3 comments
Open

Comments

@vchelaru
Copy link

vchelaru commented May 2, 2024

This library came up in the MonoGame chat today, but the person interested in using it was not sure how to integrate it into their game.

The main page readme indicates the documentation is "Coming soon!". An intro tutorial would go a long way for new users, especially those who are very new to the concept of spatial partitioning.

@Apostolique
Copy link
Owner

I'm not ready to write docs just yet, at least not until a version 1.0.0 is done. For now you can read the example project.

https://github.com/Apostolique/Apos.Spatial/blob/b26766ec401b8f3213e6b800282a19f7437ac98b/Example/Game/Entity.cs

foreach (var e in _aabbTree.Query(xy)) {
_sb.FillRectangle(e.Rect.TopLeft, e.Rect.Size, Color.White * 0.3f);
}

For a bigger project, there's https://github.com/Apostolique/Mitten/blob/main/Game/GameRoot.cs you can see how the API is used on the _tree data structure.

@axelei
Copy link

axelei commented May 3, 2024

Hello! I'm said person. I'm interested in implementing spatial partition in my game for object collisions and found your project.

I appreciate you bothered to create an example, but I think it'll be more helping with comments and more explainatory variable names. This way you won't even need documentation!

@axelei
Copy link

axelei commented May 4, 2024

For the time being I wrote a small tutorial. Please check the PR #3 !

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

No branches or pull requests

3 participants