home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Homebrewer's Handbook / vr.iso / vr386 / title.c < prev    next >
C/C++ Source or Header  |  1996-03-19  |  3KB  |  91 lines

  1. // This is the title screen for VRC
  2. // By Dave Stampe, Feb. '93
  3.  
  4.  
  5. /*
  6.  This code is part of the VR-386 project, created by Dave Stampe.
  7.  VR-386 is a desendent of REND386, created by Dave Stampe and
  8.  Bernie Roehl.  Almost all the code has been rewritten by Dave
  9.  Stampre for VR-386.
  10.  
  11.  Copyright (c) 1994 by Dave Stampe:
  12.  May be freely used to write software for release into the public domain
  13.  or for educational use; all commercial endeavours MUST contact Dave Stampe
  14.  (dstampe@psych.toronto.edu) for permission to incorporate any part of
  15.  this software or source code into their products!  Usually there is no
  16.  charge for under 50-100 items for low-cost or shareware products, and terms
  17.  are reasonable.  Any royalties are used for development, so equipment is
  18.  often acceptable payment.
  19.  
  20.  ATTRIBUTION:  If you use any part of this source code or the libraries
  21.  in your projects, you must give attribution to VR-386 and Dave Stampe,
  22.  and any other authors in your documentation, source code, and at startup
  23.  of your program.  Let's keep the freeware ball rolling!
  24.  
  25.  DEVELOPMENT: VR-386 is a effort to develop the process started by
  26.  REND386, improving programmer access by rewriting the code and supplying
  27.  a standard API.  If you write improvements, add new functions rather
  28.  than rewriting current functions.  This will make it possible to
  29.  include you improved code in the next API release.  YOU can help advance
  30.  VR-386.  Comments on the API are welcome.
  31.  
  32.  CONTACT: dstampe@psych.toronto.edu
  33. */
  34.  
  35.  
  36. #include <stdio.h>
  37. #include <dos.h>     /* delay() */
  38. #include <conio.h>
  39.  
  40. static char *title[] = {
  41.     "",
  42.     "                                   VR-386",
  43.     "",
  44.     "           a port of REND386 V5.0, identical in operation to the",
  45.     "",
  46.     "           Virtual Reality Creations release in function. but massively",
  47.     "            rewritten internally to make programming simpler.",
  48.     "",
  49.     "                VR-386 written and (c) 1994 by Dave Stampe",
  50.     "                REND386 (c) 1993 by Dave Stampe and Bernie Roehl",
  51.     "",
  52.     "             This program is free for non-commercial, non-profit,",
  53.     "              non-promotional use.  Any other use requires prior",
  54.     "                    written permission from the authors",
  55.     "",
  56.     "                  Note: a 386 or 486 PC and VGA card are",
  57.     "                      required to run this software.",
  58.     "",
  59.     "                           Version date: 9/1/94",
  60.     "",
  61.     "Loading files...",
  62.     "",
  63.     NULL
  64.     };
  65.  
  66. void title_screen()
  67. {
  68.     int i;
  69.     textattr((BLUE<<4)+WHITE);
  70.     directvideo = 0;
  71.     clrscr();
  72.  
  73.     for (i = 0; title[i]; ++i) {
  74.         cputs(title[i]);
  75.         cputs("\r\n");
  76.         }
  77.     directvideo = 1;
  78. }
  79.  
  80. void wait_for_title()
  81. {
  82.   int i;
  83.   cputs("\n\r Ready- Press a key to start.\n\r");
  84.   for (i = 0; i < 100; i++)
  85.     {
  86.       delay(100);
  87.       if (kbhit()) break;
  88.     }
  89.   while (kbhit()) getch();
  90. }
  91.