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

The top left coordinates are 1,1 not 0,0 #6541

Open
jdonwells opened this issue Nov 7, 2024 · 0 comments
Open

The top left coordinates are 1,1 not 0,0 #6541

jdonwells opened this issue Nov 7, 2024 · 0 comments

Comments

@jdonwells
Copy link

Describe the bug
The top left screen coordinates are 1,1 not 0,0. The lower right corner is 160,120. I would expect it to be at 159, 119 if 0,0 is the top left.

The documentation for set position states.

The x position of the sprite can have a value that is greater than the width of the screen. It can also have a value that is less than the left side of the screen (the left of screen is 0 and the value of the x position of the sprite in this case is negative). When this happens, some or all of the sprite isn’t visible on the screen.

Similarly, the y position of the sprite can have a value that is greater than the height of the screen. It can also have a value that is less than the top side of the screen (the top of screen is 0 and the value of the y position of the sprite in this case is negative).

To Reproduce
Steps to reproduce the behavior:

  1. Create a 1 x 1 pixel sprite
  2. place that sprite at 0,0
  3. observe the sprite
  4. place the sprite at 1,1
  5. observe the sprite

Expected behavior
I expected to see the sprite when placed at 0,0. I didn't.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Chrome os
  • Browser Chrome
  • Version 130.0.6723.84 (Official Build) (64-bit)
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

No branches or pull requests

1 participant