-
-
Notifications
You must be signed in to change notification settings - Fork 80
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Diagonal movement issue #1
Comments
Hi, thanks for your comment. Actualy it was my desition to prevent this kind of slides. The If you want to enable all types of slides down, you can only check the side grid slots in the private bool CanDropDiagonally(IGameBoard<IUnityGridSlot> gameBoard, IUnityGridSlot gridSlot,
GridPosition direction, out GridPosition gridPosition)
{
var sideGridSlot = gameBoard.GetSideGridSlot(gridSlot, direction);
if (sideGridSlot is { NotAvailable: true })
{
return gameBoard.CanMoveDown(sideGridSlot, out gridPosition);
}
gridPosition = GridPosition.Zero;
return false;
} |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hi, thanks for this a nice piece of work. However, I think I found a bug.
The items don't always move (slide) as expected in slide down fill mode.
Minimal reproduction code and steps
You will that empty slots are not filled with the items that should slide diagonally.
The text was updated successfully, but these errors were encountered: