diff -Nau orig/README mine/README --- README Fri Jan 10 02:18:02 1997 +++ README Wed Oct 28 21:51:32 1998 @@ -11,10 +11,12 @@ * DESCRIPTION Xkobo is a single player action game. The play is quite simple. Your object is to destroy all the fortresses. You - can control your ship by pressing the cursor keys (or mov- + can control your ship by pressing the cursor keys (or mov­ ing the mouse cursor), and shot beams by pressing the - SHIFT key (or the left mouse button). The game can be - paused by pressing 's' (or the right mouse button). + SHIFT key (or the left mouse button). Autofire can be + turned on and off by pressing 'a' (or the middle mouse + button). The game can be paused by pressing 's' (or the + right mouse button). ------------------------------------------------------------------------- diff -Nau orig/key.C mine/key.C --- key.C Wed Mar 13 16:34:29 1996 +++ key.C Wed Oct 28 20:24:29 1998 @@ -37,11 +37,13 @@ int _key::ul; int _key::ur; int _key::shot; +int _key::autofire; int _key::direction; void _key::init() { direction = 1; + autofire = 0; _key::clear(); } @@ -51,7 +53,7 @@ right = 0; up = 0; down = 0; - shot = 0; + shot = autofire; } void _key::press(KeySym sym) @@ -72,7 +74,8 @@ else if (sym == XK_Home ) ul = 1; else if (sym == KEY_UR ) ur = 1; else if (sym == XK_Prior ) ur = 1; - else if (sym == KEY_SHOT ) shot = 1; + else if (sym == KEY_SHOT && !autofire) shot = 1; + else if (sym == KEY_AUTO ) shot = autofire = 1 - autofire; else if (sym == KEY_EXIT ) manage.exit_key(); else if (sym == KEY_START) manage.start_key(); else if (sym == KEY_PLUS ) manage.plus_key(); @@ -98,7 +101,7 @@ else if (sym == XK_Home ) ul = 0; else if (sym == KEY_UR ) ur = 0; else if (sym == XK_Prior ) ur = 0; - else if (sym == KEY_SHOT ) shot = 0; + else if (sym == KEY_SHOT && !autofire) shot = 0; _key::change(); } @@ -134,14 +137,15 @@ void _key::mouse_press(int n) { - if (n == 1) shot = 1; + if (n == 1 && !autofire) shot = 1; + else if (n == 2) shot = autofire = 1-autofire; else if (n == 3) manage.start_key(); _key::change(); } void _key::mouse_release(int n) { - if (n == 1) shot = 0; + if (n == 1 && !autofire) shot = 0; _key::change(); } diff -Nau orig/key.h mine/key.h --- key.h Wed Apr 3 22:58:51 1996 +++ key.h Wed Oct 28 19:24:39 1998 @@ -43,11 +43,12 @@ #define KEY_EXIT XK_q #define KEY_PLUS XK_m #define KEY_MINUS XK_n +#define KEY_AUTO XK_a class _key{ static int space; static int left, up, down, right, ul, ur, dl, dr; - static int shot; + static int shot, autofire; static int direction; static void change(); public: diff -Nau orig/xkobo.man mine/xkobo.man --- xkobo.man Fri Jun 14 18:43:26 1996 +++ xkobo.man Wed Oct 28 21:06:03 1998 @@ -1,4 +1,4 @@ -.TH XKOBO 1 "29 September 1995" +.TH XKOBO 1 "28 October 1998" .SH NAME xkobo - a video-oriented game for X .SH SYNOPSIS @@ -8,11 +8,12 @@ ] .SH DESCRIPTION .B Xkobo -is a single player action game. The play is quite simple. Your object is -to destroy all the fortresses. You can control your ship by pressing -the cursor keys (or moving the mouse cursor), and shot beams by pressing -the SHIFT key (or the left mouse button). The game can be paused by -pressing 's' (or the right mouse button). +is a single player action game. The play is quite simple. Your object +is to destroy all the fortresses. You can control your ship by +pressing the cursor keys (or moving the mouse cursor), and shot beams +by pressing the SHIFT key (or the left mouse button). Autofire can be +turned on and off by pressing 'a' (or the middle mouse button). The +game can be paused by pressing 's' (or the right mouse button). .SH OPTIONS .TP 3