sgt/puzzles
20 years agoHave each game declare a name which is used for window titles etc.
simon [Wed, 28 Apr 2004 17:46:04 +0000 (17:46 +0000)]
Have each game declare a name which is used for window titles etc.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4167 cda61777-01e9-0310-a592-d414129be87e

20 years agoShift-click is equivalent to middle-click. This is mostly for
simon [Wed, 28 Apr 2004 17:42:32 +0000 (17:42 +0000)]
Shift-click is equivalent to middle-click. This is mostly for
Windows users who may not have a middle button at all, but I've
replicated it in GTK to maintain cross-platform consistency.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4166 cda61777-01e9-0310-a592-d414129be87e

20 years agoFix zillions of MSVC compiler warnings. Sigh.
simon [Wed, 28 Apr 2004 17:37:13 +0000 (17:37 +0000)]
Fix zillions of MSVC compiler warnings. Sigh.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4165 cda61777-01e9-0310-a592-d414129be87e

20 years agoIntroduce diagonal movement keys on the numeric keypad, and use them
simon [Wed, 28 Apr 2004 17:21:57 +0000 (17:21 +0000)]
Introduce diagonal movement keys on the numeric keypad, and use them
as an alternative control method in Cube. (This was a bit of hassle
in the Windows front end; I also introduced a debugging framework
and made TranslateMessage conditional.)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4162 cda61777-01e9-0310-a592-d414129be87e

20 years agoAdd .map and .rsp files to .cvsignore.
simon [Wed, 28 Apr 2004 12:39:39 +0000 (12:39 +0000)]
Add .map and .rsp files to .cvsignore.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4160 cda61777-01e9-0310-a592-d414129be87e

20 years agoMore robust timer handling in GTK: never create a new timer when one
simon [Wed, 28 Apr 2004 12:34:37 +0000 (12:34 +0000)]
More robust timer handling in GTK: never create a new timer when one
is already active.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4159 cda61777-01e9-0310-a592-d414129be87e

20 years agoAdd a menu bar, in both Windows and GTK. In particular, game modules
simon [Wed, 28 Apr 2004 12:07:15 +0000 (12:07 +0000)]
Add a menu bar, in both Windows and GTK. In particular, game modules
are now expected to provide a list of `presets' (game_params plus a
name) which are selectable from the menu. This means I can play
both Octahedron and Cube without recompiling in between :-)
While I'm here, also enabled a Cygwin makefile, which Just Worked.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4158 cda61777-01e9-0310-a592-d414129be87e

20 years agoA-_ha_! The Windows Rectangle() call appears to get uppity if asked
simon [Tue, 27 Apr 2004 22:49:21 +0000 (22:49 +0000)]
A-_ha_! The Windows Rectangle() call appears to get uppity if asked
to draw a 1x1 rectangle, presumably on the grounds that that's
beneath its dignity and you ought to be using SetPixel() instead. So
now I do, and now Net actually looks exactly the same on Windows and
GTK. Woo!

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4157 cda61777-01e9-0310-a592-d414129be87e

20 years agoMost of a Windows front end. Something's not _quite_ right in the
simon [Tue, 27 Apr 2004 20:51:08 +0000 (20:51 +0000)]
Most of a Windows front end. Something's not _quite_ right in the
GDI - there are blobs in the middle of powered lines in Net. But
it's 99% there now.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4156 cda61777-01e9-0310-a592-d414129be87e

20 years agoStop the user being able to resize the window.
simon [Tue, 27 Apr 2004 19:01:49 +0000 (19:01 +0000)]
Stop the user being able to resize the window.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4155 cda61777-01e9-0310-a592-d414129be87e

20 years agoImplemented Cube, in a sufficiently general way that it also handles
simon [Tue, 27 Apr 2004 17:44:30 +0000 (17:44 +0000)]
Implemented Cube, in a sufficiently general way that it also handles
the tetrahedron, octahedron and icosahedron.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4151 cda61777-01e9-0310-a592-d414129be87e

20 years agoFurther general development. Net is now playable, though
simon [Mon, 26 Apr 2004 17:10:44 +0000 (17:10 +0000)]
Further general development. Net is now playable, though
configuration is absent as yet.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4145 cda61777-01e9-0310-a592-d414129be87e

20 years agoGeneral further development. Sketched out the mid-end, added more
simon [Sun, 25 Apr 2004 20:15:22 +0000 (20:15 +0000)]
General further development. Sketched out the mid-end, added more
GTK code, rudiments of event passing.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4141 cda61777-01e9-0310-a592-d414129be87e

20 years agoBeginnings of a GTK framework. (And I do mean _beginnings_; it opens
simon [Sun, 25 Apr 2004 14:45:22 +0000 (14:45 +0000)]
Beginnings of a GTK framework. (And I do mean _beginnings_; it opens
a window and that's about it.)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4139 cda61777-01e9-0310-a592-d414129be87e

20 years agoInitial checkin of a portable framework for writing small GUI puzzle
simon [Sun, 25 Apr 2004 14:27:58 +0000 (14:27 +0000)]
Initial checkin of a portable framework for writing small GUI puzzle
games.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4138 cda61777-01e9-0310-a592-d414129be87e