home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d7xx
/
d757
/
followmouse.lha
/
FollowMouse
/
FollowMouse.ReadMe
< prev
next >
Wrap
Text File
|
1992-11-06
|
3KB
|
87 lines
Program name: FollowMouse
Written with: Kick PASCAL 2.0
Machine: Standard Amiga 500 with OS1.3,One drive,1 MByte RAM
Author: Kamran Karimi
Source: Included
Run methode: From both WorkBench and Shell (As all Amiga programs should)
What it does: A pair of small blinking eyes in a draggable window following
the mouse movement on the screen.
By the way: Why doesn't everybody program in PASCAL?
Program status:You can use this program freely but I retain the CopyWrite to
the source code and the executable program.
Directory contents:
FollowMouse
FollowMouse.p
FollowMouse.ReadMe
I had KickPASCAL (from the German company MAXON) for some time but the only
use I had found for it was to port some programs I'd written originally in
TurboPASCAL and compile them with the 'Kick', and the results? the
compatibility was excellent!.I compiled some programs without changing a
line of code!. So I tried to write somthing with it and gain some experience
in PASCAL programming, and I was after a subject to begin using the Kick.
Some month ago in a computer exhibition in Tehran I saw an executable program
called 'EyeBalls' on a MAC LC, which showed a pair of blinking eyes.
When they program somthing on a machine as primitive as a MAC then it should
be fairly easy to write it for the Amiga! even with limited knowledge. Because
I had not seen any thing like that on Amiga, I decided to program it , and I
chose KickPASCAL.
The eye situations are defined in a series of frames,and there are not lots
of them,so the eye movements may seem somewhat jerky, but it does the work.
the program first initializes necessary things and sets its priority to -2
so that when a task of higher priority needs lots of computing,the eyes will
stop until the processor becomes free. in short: it would not hinder normal
operations of the Amiga.
then an infinite loop is enterd in which the program computes the mouse
coordinates and puts the appropriate frame on the screen.based on a random
number it blinks the eyes from time to time.
I've used a Taylor series approximation to find the ArcTan function just
because the Kick insisted on openning the requiered math library,and that
for single drive users with no hard disks like me is an agony.(single drive
users know the trouble of disk swappings!).now the program works without any
need to something on the bootdisk.
When you start the program it opens a window in a random place on the
WorkBench screen.you can drag the eyes any where because it is a draggable
window.You can run several instances of this program if you want.
I have not tested the program under any other OS version or processor.Maybe
someone will test it and kindly let me know about the results.I would
especially like to know if it works correctly with faster processors.
This program is Public Domain and you can use it freely,but I would be
grateful if you send me computer books (especially Amiga books) or software
you don't need any more, or even photocopies of articles in books or magazines
containing Amiga programming guides or examples.Don't forget to send the
buges you find and suggestions about improving it.
Send any bugs you find or any suggestions to
Kamran Karimi
2,Hassanabad
Haghshenas str.
Navab str.
13599 - Tehran
Iran