AGI MOUSE v0.6 DEMO 2 
By Brian Provinciano <bri_da_man@hotmail.com>
April 5th 1999
---------------------------------------------

This is a demonstration of how AGI Mouse v0.6 can give mouse support similar
to that of SCI0 to AGI.

Here's how I did it
~~~~~~~~~~~~~~~~~~~

Step 1:
First, I changed the ego to being a mouse cursor and renumbered the original 
ego to VIEW.002 and the dead ego to VIEW.003.

Step 2:
Next, I edited defines.txt and LOGIC.091 so that the menu is activated by the
F10 key and the ESC key is free to be used elsewhere. The following lines 
were edited/added:

  set.key(0, 68, key_activiate_menu);  // F10 - activate menu
  set.key(27, 0, key_esc); 

Step 3:
Next I went to LOGIC.002 to do some editing. 

First I changed the set.horizon(50) to set.horizon(0) so that the cursor 
could move all around.

Second, I changed the cursor's priority to 15 so that it could move more
freely around the screen.

I then loaded the VIEW.002 on to the screen and wrote the code for the 
SCI0-like mouse control. This is what I typed:

if (controller(key_esc)) { // If the ESC key is pressed
  get.posn(ego,v212,v213); // Get the position of the cursor (VIEW.000)
  move.obj.v(o2,v212,v213,1,f214); // Move the ego (VIEW.002) there
  reset(f214);
}

That was all that needed to be done to do that!

Step 4:
Lastly, I modified the AGI help text and death handler. 


And that was how I did it. You probably noticed that you can use a similar
procedure to what I did to have the cursor move the ego to pick up items and
add buttons to create a point & click no typing interface!

Note - the code was demonstrated on the 256 colour version, but can also be 
used in the regular. 

Please email me with any questions or comments. 