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

Cat moves faster on diagonals #20

Open
SondreDj opened this issue Feb 14, 2024 · 3 comments
Open

Cat moves faster on diagonals #20

SondreDj opened this issue Feb 14, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@SondreDj
Copy link

Movement is not normalized leading to faster movement on diagonals.

@crgimenes
Copy link
Owner

True. Maybe if we take the dimensions of the monitor and calculate the aspect ratio and then put the proportion in a variable to have the movement closer to 1 to 1...

@crgimenes crgimenes added the help wanted Extra attention is needed label Feb 14, 2024
@crgimenes
Copy link
Owner

https://www.youtube.com/shorts/0cYjreg7dpg

maybe this may give an idea to 'fix' it

The problem is that I must discover a way to normalize the displacement. As the coordinates are integers and we move one pixel at a time, I need to think of a way to normalize this without rounding the number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants
@crgimenes @SondreDj and others