Fix my program
in
Programming Questions
•
2 years ago
I've been fiddling with the examples and came up with this program.
Description of intent:
It's supposed to give the user a default view of the board (at anangle, so that the opponents cards seem further away on the oppositeside - similar to the way most of your 3d chess games have looked).Currently there is just one card, but imagine lots. In the defaultview the user should be able to mouse over a card and drag it aboutthe table. If the user presses 'z' then the 'camera' zooms in (andinto a flat angle) and the user should be able to just pan around byclicking and dragging.
But it's not working. I found I can use screenX and screenY to do better bounds checking on the mouse (to see if the cursor is on the card), but the rest is all botched. How to fix?
[For more information look here: http://groups.google.com/group/clojure/browse_thread/thread/68600bb6a58ef9d1]
1