The Floys screen saver displays a group of red Floys swimming in an aquarium. A yellow Floy, a stranger, is chased and hit by the red ones, who cannot stand any foreigner in their territory.
The Floys Screen Saver is fully customizable: you can define its size, the number of Floys, the speed of movement, the background image (you can put one of your own) and other behavioral parameters.
Open the file mfloys.htm in any editor (Notepad is Ok), and go to the applet line. You will see the following:
<applet code=miniFloys.class width=900 height=600>
<PARAM NAME=NF VALUE="18">
<PARAM NAME=Sleep VALUE="40">
<PARAM NAME=MaxSpeed VALUE="3">
<PARAM NAME=BounceSpeed VALUE="0.8">
<PARAM NAME=ApproachAcceleration VALUE="0.3">
<PARAM NAME=CenterAcceleration VALUE="0.1">
The parameters define many aspects of the screen saver behavior. Not all of them are relevant to this simplified version of the Floys program, but many are and can be modified. Here are a few examples:
Change the overall dimensions:
You can modify the width and height values in the applet line to fit the size of the image to your screen. The maximum dimensions are 1350x750. For example, if your display uses a resolution of 640x480 you can set width=600 height=440 to fit it to your monitor area. Change the line as follows:
<applet code=miniFloys.class width=600 height=440>
Centering the image in vertical dimension:
If you define an image height that is smaller than screen height, you can control the vertical image placement by modifying the following line, at the the top of the html file:
<img src="dot_black.jpg" width="1" height="1" border="0" alt="">
changing the height attribute (e.g. height="30") will put the image in a lower position on the screen.
Change the number of Floys:
The NF parameter stands for the number of Floys. If you want to see 50 red Floys instead of 12, modify the NF line as follows:
<PARAM NAME=NF VALUE="50">
Change Floys speed of movement:<
Increase the MaxSpeed parameter to make th Floys run faster, decrease it to make them run slower. The default value (3) is supposed to display a calm, relaxed movement (depending on your computer). To make the Foys more vigorous and energetic increase the value:
<PARAM NAME=MaxSpeed VALUE="8">
Increase the Sleep paramater to make the Floys calm and slow, increase it to make them energetic and fast. Combine the MaxSpeed and Sleep parameters to get the behavior you want.
<PARAM NAME=Sleep VALUE="40">
Change the background image:
The Aquarium picture is defined in the PictureFile parameter. If you want to use your own picture place a gif or jpg image file in the mfloys directory and change the parameter correspondingly. The default picture file is aquarium_a.jpg. For example, if your picture file is named fish.gif change to:
<PARAM NAME=pictureFile VALUE="fish.gif">
You can play with the other parameters and see their effect (Some of them will not have any effect in this version). The new behavior can be seen (after saving the modified mfloys.htm in the mfloys directory) by clicking the demo button (above), or by running (double-clicking) the file mfloys.html.