Hi, in screen coordinates you have zero at the top of your screen, and the max value at the bottom.
Ginsengelf
Hi, in screen coordinates you have zero at the top of your screen, and the max value at the bottom.
Ginsengelf
Hey hi, you need to invert the y coordinate value so that higher values correspond to higher height. You can achieve this by subtracting the y coordinate from the maximum height value.
In Qt's QGraphicsScene, the coordinate system has the origin at the top-left corner, with the Y-axis increasing downwards.
MAYAPOSCH
This means that as your Flappy Bird character moves upward, its Y-coordinate decreases. Consequently, when you display the Y-coordinate as the height, it appears to decrease as the bird ascends, which is the opposite of the expected behavior.
In Qt's QGraphicsScene, the coordinate system has the origin at the top-left corner, with the Y-axis increasing downwards.
This means that as your Flappy Bird character moves upward, its Y-coordinate decreases. Consequently, when you display the Y-coordinate as the height, it appears to decrease as the bird ascends, which is the opposite of the expected behavior.
oh. thank you for this answer
Bookmarks