Skip to content

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

Open
wants to merge 3 commits into
base: fabric
Choose a base branch
from

Conversation

RealRTTV
Copy link
Contributor

@RealRTTV RealRTTV commented Mar 15, 2025

Closes #719.

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),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

@RealRTTV RealRTTV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes

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.

Allow clicking cell numbers to reveal surrounding unmarked cells
2 participants