home *** CD-ROM | disk | FTP | other *** search
- {
- Copyright 1992 by Digital Crime.
-
- All rights reserved.
-
- Permission to use, copy, modify, and distribute this software and its
- documentation for any purpose and without fee is hereby granted,
- provided that the above copyright notice appear in all copies and that
- both that copyright notice and this permission notice appear in
- supporting documentation, and that the name of the Digital Crime
- not be used in advertising or publicity pertaining to distribution
- of the software without specific, written prior permission.
-
- DIGITAL CRIME DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
- SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS, IN NO EVENT SHALL DIGITAL CRIME BE LIABLE FOR ANY SPECIAL,
- INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
- FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
- NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
- WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
- s924683@minyos.xx.rmit.OZ.AU Chandi.
- s924698@minyos.xx.rmit.OZ.AU Ed.
-
- }
- {$R-}
-
- program Boot;
-
- uses SVGA, Crt;
-
- const MaxX = 630; MaxY = 470;
- MinX = 10; MinY = 80;
-
- var Vx1, Vy1, Vx2, Vy2, i, j, x1,y1,x2,y2,x3,y3,x4,y4 : integer;
- Ch : char;
-
- begin
- i := 0; j := 128;
- SetMode( SVGAMED );
- LoadPalette( 'boot.pal' );
- LoadFont( StandardFont );
- repeat
- Randomize;
- Vx1 := 1; Vy1 := 1;
- Vx2 := -1; Vy2 := -1;
- x1 := Random( Random(GetMaxX) );
- y1 := Random( Random(GetMaxY-80) +80);
- x2 := Random( Random(GetMaxX) );
- y2 := Random( Random(GetMaxY-80) +80);
- x3 := Random( Random(GetMaxX) );
- y3 := Random( Random(GetMaxY-80) +80);
- x4 := Random( Random(GetMaxX) );
- y4 := Random( Random(GetMaxY-80) +80);
- SetFontColor( 64, 0, True );
- OutTextXY( 10,10,'DIGITAL CRIME PRODUCTIONS 1992' );
- repeat
- if (x3 > MaxX) Or (x2 > MaxX) then Vx1 := -1;
- if (x1 > MaxX) or (x4 > MaxX) then Vx2 := -1;
- if (y3 > MaxY) Or (y2 > MaxY) then Vy1 := -1;
- if (y1 > MaxY) or (y4 > MaxY) then Vy2 := -1;
- if (x3 < MinX) Or (x2 < MinX) then Vx1 := 1;
- if (x1 < MinX) or (x4 < MinX) then Vx2 := 1;
- if (y3 < MinY) Or (y2 < MinY) then Vy1 := 1;
- if (y1 < MinY) or (y4 < MinY) then Vy2 := 1;
- x1 := x1+Vx2;
- y1 := y1+Vy2;
- x2 := x2+Vx1;
- y2 := y2+Vy1;
- x3 := x3+Vx1;
- y3 := y3+Vy1;
- x4 := x4+Vx2;
- y4 := y4+Vy2;
- if i <> 256 then i := i + 1
- else i := 0;
- if j <> 256 then j := j + 1
- else j := 0;
- Line( x1, y1, x2, y2, i );
- Line( x3, y3, x4, y4, j );
- until keypressed;
- Ch := Readkey;
- if Ch <> 'q' then
- ClearPort( 0, 0, GetMaxX, GetMaxY );
- OutTextXY( 10,10,'DIGITAL CRIME PRODUCTIONS 1992' );
- i := 0;
- j := 128;
- until Ch = 'q';
- ExitGraphics;
- end.