home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / gamelib.zip / README.TXT < prev    next >
Text File  |  1996-04-24  |  4KB  |  84 lines

  1.                 GAME.LIB v1.0 - copyright 1996 Andrew McNab
  2.                                 shareware C games library
  3.  
  4. WARNING - You use this library at your own (and your computers) risk.
  5. Tested with Turbo C++, large model.
  6.  
  7. Files included:
  8. game.lib - the C library file, link it to your programs
  9. grlib.h - The header file of function declarations (useful for C++ users!)
  10. functions.txt - how to use each and every library function
  11. readme.txt - This!
  12. ex1.exe,ex1.c - The first example program
  13. ex2.exe,ex2.c - and the second
  14. back.pcx,sph.mbm - images for use by the example programs
  15. pcx2mbm.exe  - converts normal pcx files into super whizzy masked bitmaps
  16.                (.mbm files as I call them).  My own creation.
  17. pcx2mbm.txt - how to use the above program
  18. keycodes.txt - All the codes for every key, needed for using the CheckKey()
  19.                function.
  20.  
  21. How does it all work?
  22. This library of graphics functions has been developed with games creation as
  23. the target.  Therefore they make use of a virtual screen area, or 'games 
  24. buffer' as I have named it, in which each frame of animation can be built up
  25. before being pasted to the screen display, this allows for smooth updating of
  26. complex displays.  The buffer can also be used to create a large scrollable
  27. playing area several screens in size (you will be limited to around 8 by low
  28. memory), a window of which can be displayed on screen each frame.  With this
  29. latter method the foreground sprites should be pasted onto the screen for
  30. each frame and then the relevant background areas restored afterwards.
  31. Ex1.c shows you the basics of creating a scrolling game with the library
  32. while Ex2.c shows the first method of building up the whole screen each frame,
  33. and also gives examples of how to use some of the drawing functions.
  34. These functions were written in Turbo C++, making them a little slower
  35. than assembly language routines but you should find them more than fast enough
  36. on most computers.  I am not sure how usable these functions are on non 
  37. Borland C compilers, but I would like to know if you have any difficulties
  38. or solutions for using them with other compilers.  Both C and C++ should work
  39. well with the library, though you may have to declare the functions in 
  40. grlib.h as 'extern "C"' for C++ programs, as well as converting a few void
  41. pointers to the unsigned char pointer type needed by my functions.
  42.  
  43. CONTROL INPUT - This being a somewhat vital element in games creation I have
  44. included a very capable keyboard scanning routine which once initialized will
  45. keep a record off which keys are currently pressed.  You can then use the
  46. CheckKey() function provided to check if a certain key is currently held
  47. down.  Just remember to close down this function before exiting your program
  48. or you may lose control temporarily of your keyboard!
  49. As for joystick and mouse input you will have to buy the registered version
  50. of this library to get all the necessary functions (only £10, see below).
  51.  
  52. SOUND - I get a bit stuck here, however, luckily there are some top freeware
  53. C libraries/functions available on the internet, such as VAT.  
  54. But if anybody has some top C soundblaster functions that I could incorporate 
  55. into this library, please email me and I'll make you a deal!
  56.  
  57. If you have any problems, comments, etc contact me by email at: 
  58.  101447.2365@compuserve.com
  59.  
  60. SHAREWARE REGISTRATION
  61. This library is shareware (please give it to lots of people), you may use it 
  62. for up to 14 days after which time you are required to pay the £10 (UK 
  63. sterling) registration fee.  Registered users get free updates/fixes to this 
  64. library and reductions on future C programming related releases, not to 
  65. mention a new library with additional joystick and mouse functions, on 3.5" 
  66. disk.
  67.  
  68. To register, send cheque or postal/money order, worth 10 UK pounds and payable 
  69. to A.L.McNab, to : 
  70.                   A.L.MCNAB
  71.                   40 Nine Acres Close
  72.                   Charlbury
  73.                   Oxford
  74.                   OX7 3RB
  75.                   UK
  76.  
  77. Include your email address if you want free updates, these will be sent to
  78. you via the internet.
  79.  
  80. Now go use it!
  81.  
  82.  
  83.     
  84.