home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / donuts / readme.txt < prev    next >
Text File  |  1997-07-14  |  2KB  |  55 lines

  1. Space Donuts Sample Game
  2. ------------------
  3.  
  4. This game demonstrates many of the features of DirectDraw.  It will take
  5. advantage of hardware acceleration if it is supported by the driver.
  6.  
  7. Roids defaults to 640x480 at 256 colors.  You may specify a different 
  8. resolution and pixel depth on the command line (roids 800x600x16).
  9.  
  10. This program requires less than 1 Meg of video ram.  However, all of its
  11. art may not fit in the vram on a 1 Meg rectangular memory card.
  12.  
  13. The commands which this game recognizes are listed on the opening screen.
  14.  
  15.     ESC, F12        - Quit
  16.     NUMPAD 4        - Turn left
  17.     NUMPAD 6        - Turn right
  18.     NUMPAD 5        - Stop moving
  19.     NUMPAD 8        - Accelerate forward
  20.     NUMPAD 2        - Accelerate backward
  21.     SPACEBAR        - Fire
  22.     NUMPAD 7        - Shield
  23.     ENTER           - Starts game
  24.     F5              - toggle frame rate display
  25.     F3              - toggle audio
  26.     F1              - toggle cheesy trails effect
  27.  
  28. Command line switches:
  29.  
  30.     -e              - Use emulation, not hardware acceleration
  31.     -t              - Test mode.  Runs game for you.
  32.     -x              - Stress mode.  Never halt if you can help it.
  33.     -S              - turn off sound
  34.     
  35.    These switches may be followed by three option numbers representing:
  36.         X resolution
  37.         Y resolution
  38.         Bits per pixel
  39.  
  40.  
  41.  
  42. Sound code
  43. ----------
  44.  
  45. The sound code in this application is deliberately designed
  46. to be stressful.  For example, each bullet on the screen uses a different
  47. sound buffer.  Over 70 sound buffers are created (including duplicates)
  48. and 20-25 may be playing at any time.  This could be made much more
  49. efficient, but we wanted code to stress our API and mixer.
  50.  
  51. The sounds are implemented using the helper functions in dsutil.h and
  52. dsutil.c (found in the sdk\samples\misc directory).  These helper
  53. functions may help you to add sound to your application quickly and
  54. easily.
  55.