-
-
Notifications
You must be signed in to change notification settings - Fork 126
added click-3x3 feature (closes #719) #720
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
base: fabric
Are you sure you want to change the base?
Conversation
private Stream<Vector2i> getNeighbours(int x, int y) { | ||
return Stream.of( | ||
new Vector2i(x - 1, y - 1), new Vector2i(x, y - 1), new Vector2i(x + 1, y - 1), | ||
new Vector2i(x - 1, y), new Vector2i(x + 1, y), |
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.
new Vector2i(x - 1, y), new Vector2i(x + 1, y), | |
new Vector2i(x - 1, y), new Vector2i(x + 1, y), |
What is this ungodly amount of whitespace for?
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.
The neighbour tiles are the 8 surrounding, I divided the lines such that the position of the Vector2i
is also the position relative to the x
and y
coordinates of the tile to get the neighbours of, although now I see that IntelliJ screwed me up a lil bit with the x:
and y:
so I'll edit it to be corrected for when not viewing with those parameter hints.
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.
changes
Closes #719.