Is it just my imagination or are X and Y flipped?
Posted: Mon Mar 04, 2024 3:01 am
Every time I program a character to move, the screen for X and Y would normally map up to y along with down and left/right to X but on the spectrum (please lord let this be the only 8 bit with this issue) the Y is left/right and the X is up/down. I know my left from my right and up from down, so please tell me I'm not going insane here.
Anyway, programming for movement is a nightmare because I have to rethink the cartesian coordinates system. Moving left and right moves me downward for some reason and moving up is fine but moving down does not work. I've checked and rechecked my code. I know what I'm doing.
I think Sir Sinclair (RIP) failed geometry class or just didn't care. How did programmers get anything done with this insanity?
A normal mapped screen places X at the mid point and Y at the top. The sinclair machines place X and Y at the top left.
I need an aspirin
Anyway, programming for movement is a nightmare because I have to rethink the cartesian coordinates system. Moving left and right moves me downward for some reason and moving up is fine but moving down does not work. I've checked and rechecked my code. I know what I'm doing.
I think Sir Sinclair (RIP) failed geometry class or just didn't care. How did programmers get anything done with this insanity?
A normal mapped screen places X at the mid point and Y at the top. The sinclair machines place X and Y at the top left.
I need an aspirin