home *** CD-ROM | disk | FTP | other *** search
- >!Help file for...
- _ ___ _ _
- /\ \ \ \ \ \ \_\ \ /\ ££££ ££ £ £ ££££
- / \ \ \ \ _\ \ _ \ / \ £ £ £ £ £ £ Version
- / __ \ \ \__ \ \ \ \ \ \/ __ \ ££££ ££££ £ £ ££££ 0.00
- /_/ \_\ \___\ \_\ \_\ \_\/ \_\ £ £ £ £ £ £
- __________________________________ ££££ £ £ £ ££££
-
- How to Program your Own!!
-
- by Marc Warne of Alpha Programming
- “Alan Launches Partridge Hats Agressively”
-
- ------------------------------------------------------------------------------
-
- Warning: Programming Screensavers is only recommended to those are familiar
- with ARM BASIC V.
-
- How to Program Screensavers (In 3 Easy (?) Steps...)
- •••••••••••••••••••••••••••
-
- Step 1: Create your screensaver directory
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Create a directory with the name '!AlphaS<no>', where <no> is a number
- between 1 and 16. Try to make it a different number from those already
- supplied.
-
- Step 2: Create the resources
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Copy the following files from the example screensaver: !DemoSave, into
- your own screensaver directory:
- !Boot
- !Run
- !Sprites
- !Sprites22
- !RunImage
-
- You may also create your own !Help file if you wish. Now it's time to
- load !MakeData. Before you load it, remember the directory name of your
- program. Then load !MakeData. When it asks you to, type in the directory
- of the program. You will then be asked the following questions:
-
- Name of Screensaver: <Type in the name>
- Screensaver Author : <Type in your name>
- Date : <Type in date or press RETURN to use current one>
- Special Strings : <Just ignore this>
- Short Description : <Type in description>
-
- Are you sure? (Y/N) <Press Y to save, or N to exit>
-
- Step 3: The Programming
- ~~~~~~~~~~~~~~~~~~~~~~~
- Load the example screensaver proviede (ie. !DemoSave). This is a fully
- working screensaver, which always changes picture. When you move/click the
- mouse or press a button on the keyboard. This is what all screensavers should
- be able to do. Now take a look at the program (the !RunImage file), itself.
- Let's take a look at the procedures in turn:
- PROCfont
- --------
- This is the procedure which plots fonts. I have noticed a few problems
- with this and RISC OS 3.5/3.6, but I have no idea what they are about. To plot
- a font, use PROCfont(foreground,background,x,y,font$,text$,fontsize). An
- example would be PROCfont(9,7,150,RND(800),"Corpus.Bold","DEMO",170). This
- will plot a yellow font, aliased to black (with a black background), at co-
- ordinates x=150 and y=RND(800), with the font "Corpus.Bold", with the text,
- "DEMO" and at size 170.
-
- PROCwait
- --------
- Believe it or not, this procedure waits for a given amount of time!
- eg. PROCwait(150) will wait for 150 cs (centiseconds), or 1.5 seconds.
-
- PROCcheckmove
- -------------
- This procedure must be called as often as possible. It checks whether the
- mouse has moved, been clicked on or a button has been pressed. If it has, then
- the program will call PROCend, which will often end it.
-
- PROCend
- -------
- This program will end the program!!
-
- That's all of the procedures. You must always do your loops in a REPEAT...
- UNTIL FALSE loop, otherwise it will end.
-
- Wow!! Not it's time to be creative and design your own loops. Have fun!!
-
- ------------------------------------------------------------------------------
-
- The rules of ScreenSaving
-
- 1. There must never by the same picture on the screen for a moderatly long
- period of time.
- 2. They are good ways of advertising
- 3. Could you please send all of the ones you make to me, with permission
- to distribute them in later versions of AlphaSave.
- 4. When you move the mouse or press a key, the screensave must exit.
-
- -------------------------------------------------- © Alpha Programming 1996 --
-