[comp.sources.games.bugs] Wanderer2.2 bug & man page

tanya@adds.newyork.NCR.COM (Tanya Katz) (03/18/89)

I have updated the man page for the game WANDERER 2.2.
It is in a shar file is attached to this posting.

When using the # to toggle to the full screen display, if help is
desired, the help menu doesn't clear away the entire debug window.

I have made an addition to help.c that clears the screen in debug_mode
that I thought you might want.


+extern int debug_disp;

void
helpme()	/* routine to show help menu. */
{
	int i = 0, i1 = 0, i2 = 0;  /* loop counters */
	char *ptr;  /* pointer in array.. */
	char ch;

+	if (debug_disp) {
+
+		/* clear full screen display. */
+
+		for(i = 0; i < 18; i++)	
+		{
+		    move(i,0);  /* move to start of line. */
+		    addstr("                                                ");
+		}
+		refresh();	/* show on screen. */
+	}
	
  	for(i1=0; i1<5; i1++)  /* times to show loop. */
	{


# =-=-=-=-=- cut -=-=-=- cut -=-=-=- cut -=-=-=- cut -=-=-=-=-=
# This is a shell archive.  Remove anything above this line!
# Save the results in a file.
# To unpack "sh file".
# To unpack & overwrite existing files, "sh file -c".
#
PATH=/bin:/usr/bin:/usr/ucb ; export PATH

if test -f wanderer.6 -a "$1" != "-c" 
   then echo file wanderer.6 exists. \"sh $0 -c\" forces overwrite!
   else echo wanderer.6 1>&2
	cat >wanderer.6 << 'END_OF_wanderer.6'
'br $Header: WANDERER 2.2  03/14/89 S. Shipway $
.TH WANDERER 6
.SH NAME
.ad
wanderer - collect treasure by wandering around
.SH SYNOPSIS
wanderer [ -e [file] | -m | -c | -s | -f ]
.SH DESCRIPTION
The object of the game is to move around, collecting treasure, and escape
through the exit.
The idea for the game came from the games 'Repton', 'Boulderdash'
and 'XOR', and was then developed further.
.SH OPTIONS
A list of the interesting command line options is given below.
.TP 12
.B -c
Reads credits file from SCREENPATH/credits
.TP 12
.B -m
Enters hiscore table editor after prompting for the MASTERPASSWORD
.TP 12
.B -s
Shows hiscore table from HISCOREPATH.
.TP 12
.B -e [file]  
If file is given,
it will take this as the file to be edited. eg, 'wanderer -e screen.1'
will edit the file 'screen.1' instead of './screen' (the default).
In Editor - x = quit edit without saving.
.TP 12
.B -f
Starts game with map-type screen instead of normal screen - although
this makes the game too easy...
.sp 2
.SH MOVING ABOUT
.br
.nf


     H  Left            1  Loud
     J  Down            0  Quiet       <- Very useful!
     K  Up              q  Quit game
     L  Right           ~  Jump level  **NB This means
                           you don't receive your bonus!
     S  Save Game       
     R  Restore Game
     W  Redraw screen   @  moves you to center of screen
     !  Look at map     #  toggle between normal and fullscreen
     ?  On-line help

This is you:      o
                 <|>     You are a spider.
                         (At least, that's what you look like)
.fi
.bp
.SH OBSTACLES, MONSTERS, ETC.
.br
.nf


  ###     -=-
  ### and =-=   Solid rock    

  <O>           Time capsule (5 points, +250 moves)
   .
  . .           Passable earth  (one point)

  /^\\
  \\_/           Boulder (falls down, boulders and arrows fall off it)

  <--    -->    Arrows       
  <-- and -->   (run left and right)     

  /$\\           (10 points)       
  \\$/           Money  (collect it) 

  TTT           Cage- holds baby monsters
  III           and changes into diamond

  -o-
  /*\\           Baby monster (kills you)

                When a baby monster hits a cage
                it is captured and you get 50 points. 
                Also the cage becomes a diamond.

  !!!      I                            
  !!! and  o    Instant annihilation 


  \\_       _/   Slopes                    
    \\ and /     (boulders etc slide off)     

  }o{           Monster  (eats you up whole. Yum yum yum.)
  /^\\           (100 points)  Kill with a rock or an arrow.

  Way           The exit. Collect all the treasure first.
  out           (250 point bonus)

  (*)
  (*)           Teleport  (50 points for using it)

  /~\\           A new addition for version 2.2M
  \\_X           The balloon rises, and is popped by arrows. 
                It does *not* kill you. 
.fi
.bp
.SH ENVIRONMENT VARIABLES
.TP 18
.B NEWKEYS
You can define your own keys for movement by using the environment
variable NEWKEYS.  For example to use a UP, z DOWN, n LEFT and m RIGHT,
add
.I setenv NEWKEYS aznm
to your .login or .cshrc file.  
.TP 18
.B NEWNAME or NAME
Use either of these environment variables to change your name.
.TP 18
.B SAVENAME 
File used for saved games. Unless NO_ENCRYPTION has been #def'd 
the saved games are encrypted.

.SH AUTHOR
.nf
Steven Shipway 
maujp@sol.warwick.ac.uk 
{maujp,csupt}@uk.ac.warwick.cu
...!mcvax!ukc!warwick!{maujp,csupt}

with thanks to:
.br
	Mark (mjs@opal) for curing the bus error
	James Beckett(cstrhey) for designing screens 5 and 6
	Mike Taylor(maujf) for helpful suggestions
.fi
END_OF_wanderer.6
if test 3629 -ne `wc -c <wanderer.6`
   then echo sh: "wanderer.6" unpacked with wrong size!
   fi
fi
# ----- End of wanderer.6 shell code ----- #
#  End of sh archive.
exit 0

------------------------------------------------------------------------------
    ###   ######  ######   #####       Tanya Katz       (516) 231-5400 x430 
   #   #  #     # #     # #           
  #     # #     # #     #  #####       ncrlnk!adds!tanya      
  ####### #     # #     #       #      tanya.katz@adds.newyork.ncr.com
  #     # ######  ######   #####       

  Applied Digital Data Systems, Inc.   100 Marcus Blvd., Hauppauge, NY 11788 
------------------------------------------------------------------------------