chiark / gitweb /
Mouse-based interface for Cube: you left-click anywhere on the grid
authorSimon Tatham <anakin@pobox.com>
Tue, 31 May 2005 11:43:51 +0000 (11:43 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 31 May 2005 11:43:51 +0000 (11:43 +0000)
commitcaee305b47bd93eda98ba40d98de7aa180a470c7
treec66977b1c6c1a145330fb5caeee010ac48788cab
parent4a3c26ff14bcfff841f1a014059a357b3263983a
Mouse-based interface for Cube: you left-click anywhere on the grid
and it moves the polyhedron in the general direction of the mouse
pointer. (I had this in my initial throwaway Python implementation
of this game, but never reimplemented it in this version. It's
harder with triangles, but not too much harder.)

Since the logical-to-physical coordinate mapping in Cube is
dynamically computed, this has involved an interface change which
touches all puzzles: make_move() is now passed a pointer to the
game_drawstate, which it may of course completely ignore if it
wishes.

[originally from svn r5877]
13 files changed:
cube.c
fifteen.c
midend.c
mines.c
net.c
netslide.c
nullgame.c
pattern.c
puzzles.h
rect.c
sixteen.c
solo.c
twiddle.c