You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wondering what other peoples' experience were with using x-y coordinates in a web game. I'm making a game with a board, and it feels intuitive (and is my experience) to have the coordinate origin (0,0) in the bottom left, so the whole grid is in positive coordinates. However, a browser flows top-down, so the coordinates start at the top left, and y is positive going down.
I'm concerned that if I don't match my game coordinates to those of the browser, I'll confuse myself once I start drawing and animating things between squares. But I've spent a much longer time thinking with +y going up.
FreeBoardGames.org checkers uses +y going down, which does seem like the simpler path.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just wondering what other peoples' experience were with using x-y coordinates in a web game. I'm making a game with a board, and it feels intuitive (and is my experience) to have the coordinate origin (0,0) in the bottom left, so the whole grid is in positive coordinates. However, a browser flows top-down, so the coordinates start at the top left, and y is positive going down.
I'm concerned that if I don't match my game coordinates to those of the browser, I'll confuse myself once I start drawing and animating things between squares. But I've spent a much longer time thinking with +y going up.
FreeBoardGames.org checkers uses +y going down, which does seem like the simpler path.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions