-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Improve TileMapLayer
get surrounding cells description
#98587
Conversation
92a1ce8
to
b168882
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to send the review
@@ -120,7 +120,7 @@ | |||
<return type="Vector2i[]" /> | |||
<param index="0" name="coords" type="Vector2i" /> | |||
<description> | |||
Returns the list of all neighboring cells to the one at [param coords]. | |||
Returns the list of all neighboring cells to the one at [param coords]. Any neighboring cell is one that is touching edges, so for a square cell 4 cells would be returned, for a hexagon 6 cells are returned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although TileMapLayer's entire documentation is somewhat shoddy, if we want to go this route you may as well mention TileSet's tile_shape
which affects this method directly, and perhaps get_neighbor_cell()
.
Even as is, there's something "awkward to read" about this description I can't quite put my finger on. I have no suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tile_shape
could be referenced optionally. I don't think this reads particularly awkward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is fine as is and pretty clear. :)
TileMapLayer
get surrounding cells description
Thanks! |
Clarifies what cells are counted as neighbors. Closes godotengine/godot-docs#9779.