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

Cows remain on invalid square with no feedback #1669

Open
faucomte97 opened this issue Jul 9, 2024 · 0 comments
Open

Cows remain on invalid square with no feedback #1669

faucomte97 opened this issue Jul 9, 2024 · 0 comments
Labels
bug volunteers Tasks that can be picked up by anyone

Comments

@faucomte97
Copy link
Contributor

faucomte97 commented Jul 9, 2024

Describe the bug
IMPORTANT This task should be completed once task #1672 has been done. This is because this task assumes that cows can be placed anywhere on the map except start and house squares.

When a user tries to place a cow on an invalid square in the level editor (start or house squares), the cow just stays there, even though it still hasn't been registered as properly "placed" in the level.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to the level editor.
  2. Create a road, and mark the start and add one or many houses.
  3. Go to the Scenery tab, and drag a cow onto the map.
  4. Try to place the cow on either the start square or any of the house squares.
  5. Notice that the cow just stays there, even when it's in invalid square. There is no feedback for the user.

Expected behaviour
When trying to place the cow on an invalid square, the cow should snap to the closest valid square.
Edge case: in the event where there are no remaining valid squares, the cow should just be removed from the map.

Screenshots
image

The cow on the road is on a valid square, you can tell this by the light grey highlight on the square.
The cow on the start square is still there, despite the fact that it's an invalid square.

@faucomte97 faucomte97 added bug in2science volunteers Tasks that can be picked up by anyone labels Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug volunteers Tasks that can be picked up by anyone
Projects
None yet
Development

No branches or pull requests

1 participant