2 years ago
We have updated the default PyAngelo coordinate system to match the regular cartesian coordinate system taught in maths. What this means is that as you increase the y value, you move up the screen. As you decrease the y value, you move down the screen. The x stays the same in that as x increases you move to the right and as x decreases you move to the left.
If you have some old programs that are now longer working due to this change, you can simply update the call to setCanvasSize(). For example if you previously had:
then you can update the call to be:
and this will update your code to work exactly as before the change.
Hopefully this will make it easier for people to learn about the coordinate system. It also means that if you are creating a game and have a y coordinate of zero, your object will essentially be on the floor. I find this is easier to explain to people new to graphics.
Become a free member to post a comment about this blog.