]> git.cworth.org Git - dvonn/log
dvonn
15 years agoAdd simplistic button-press handling
Carl Worth [Thu, 5 Mar 2009 08:33:54 +0000 (00:33 -0800)]
Add simplistic button-press handling

Right now this is just toggling a white ring on and off at
each location. The significant bit here is that the calculations
between board-index positions and screen coordinates are now
correct. Thanks to Keith Packard for helping me think through
some of the math here.

15 years agoFix vertical spacing of the board
Carl Worth [Wed, 4 Mar 2009 23:52:59 +0000 (15:52 -0800)]
Fix vertical spacing of the board

Previously we were using unit spacing for both X and Y, but the
correct answer is to include a sqrt(0.5) factor in the Y axis.

15 years agoInitial import of DVONN game
Carl Worth [Wed, 4 Mar 2009 23:35:48 +0000 (15:35 -0800)]
Initial import of DVONN game

Not yet playable, but at least we can draw something like the
correct board.