home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************/
- /* */
- /* Amiga C Encyclopedia (ACE) V3.0 Amiga C Club (ACC) */
- /* ------------------------------- ------------------ */
- /* */
- /* Book: ACM Graphics Amiga C Club */
- /* Chapter: BOBs Tulevagen 22 */
- /* File: Example9.c 181 41 LIDINGO */
- /* Author: Anders Bjerin SWEDEN */
- /* Date: 92-04-28 */
- /* Version: 1.00 */
- /* */
- /* Copyright 1992, Anders Bjerin - Amiga C Club (ACC) */
- /* */
- /* Registered members may use this program freely in their */
- /* own commercial/noncommercial programs/articles. */
- /* */
- /***********************************************************/
-
- /* In this example are we using a BOB as a planet rotating */
- /* around another BOB which is the sun. The planet consists */
- /* of 13 images all in different sizes. By moving the planet */
- /* from side to side and at the same time changing the size of */
- /* the image it looks like the planet is moving around the */
- /* sun. To make the impression realistic we have to place the */
- /* planet in front of the sun when the image of the planet is */
- /* large, and place it behind the sun when the image is small. */
- /* */
- /* This is a simple demonstration how you can use the "Before" */
- /* and "After" fields of the Bob structure. To add a "little */
- /* extra touch" to the program are we altering the colours of */
- /* the planet as it is moving around the sun. */
- /* */
- /* Since we are using quite a lot of graphics I have divided */
- /* this example into three parts. The main module is this file */
- /* "Example9.c". All graphics is placed in the second file */
- /* "Example9Graphics.c", and all constants are declared in the */
- /* third file "Example9.h" which is included by the two other */
- /* modules. Both this file and the graphics file are compiled */
- /* separately and then linked together. */
- /* */
- /* If you are using the SAS (Lattice) C Compiler you simply do */
- /* the following things: (If you do not have the SAS (Lattice) */
- /* C compiler you should check your own manual for more */
- /* information about how to link two modules together.) */
- /* 1. Compile this module: "lc Example9.c" */
- /* 2. Compile the graphic module: "lc Example9Graphics.c" */
- /* 3. Link both files together: "blink with Example9.lnk" */
- /* (The file "Example9.lnk" contains all information the */
- /* linker needs to tie the two modules together.) */
-
- I am sorry but this file is only available for registered
- members.
-
- The registration fee is only £30, $60, SEK 300, or similar
- amount in your own currency (price includes everything). The
- Amiga C Encyclopedia is the largest collection of documents,
- examples and utilities in C for the Amiga and it is still among
- the cheapest manuals. But this is not all, a registered owner
- will also get:
-
- 1. Two disks containing the last parts of the encyclopedia.
- The disks will be sent by first class air mail.
-
- 2. Registration card for the Amiga C Club (ACC).
-
- 3. Immediate information about updates.
-
- 4. Updated versions of the encyclopedia for only the cost of
- disks plus postage and packing.
-
- 5. Assistance with digitizing colour pictures and sampling
- sound effects.
-
- 6. Unlimited help with your C programs. You never have to be
- alone with your problems.
-
- 7. The right to use parts of the manual in your own
- commercial/non-commercial programs/articles.
-
- Can any other manual give you all this???
-
- The simplest way of paying is to include the money in a letter
- in cash. US dollar bills, English pounds or Swedish SEK are
- preferred, but all currencies are accepted. You can also send
- the money as a "Postal Money Order", ask your local bank or
- post office. Please do not use cheques. It is sadly extremely
- expensive to cash a foreign cheque here in Sweden.
-
- If you live in Scandinavia you can send the money to "Svenska
- Post Girot, postgiro konto: 641 88 30 - 3, betalnings-
- mottagare: Datra".
-
- Please send the registration fee together with your complete
- address to:
-
- Datra, Amiga C Club
- Anders Bjeri
- Tulevagen 22
- 181 41 LIDINGO
- SWEDEN
-
- I have worked for more than four years now with this
- encyclopedia, and with your help I can continue to improve it.
-
- Happy programming!!!
-