home *** CD-ROM | disk | FTP | other *** search
/ 300 Favorite Games / 300GAMES.iso / 94 / readme.not < prev    next >
Text File  |  1994-07-30  |  5KB  |  118 lines

  1. This file has some notes from me to other programmers interested in the
  2. dirty details of drobos ie. nothing interesting, so please go away..
  3.  
  4. When I ordered the book, all I knew about it was the name and a tiny 1
  5. inch high picture in an ad. If I had known it was a graphics library, I
  6. hadn't ordered it, but now.. Well, I don't like wasting money, so I
  7. desided to give it a try. After having done drobos, I'm content with it.
  8.  
  9. GRAPHICS LIBRARY
  10. ================
  11.  
  12. I've used "the graphics Programming PowerPack", which is "a special
  13. version of Genus Microprogramming's GX Development Series - a graphics
  14. library that supports all graphics primitives" library that I got with
  15. the "Graphics Programming PowerPack" (GPPP) book by Michael Jones (ISBN
  16. 0-672-30120-2 24.95 USD, floppy included with libs + one sample game).
  17.  
  18. The sample game is "Apples & Oranges" (reversi), which is available in
  19. some ftp-places, too. IMHO not very encouraging sample, but at least it
  20. was a fully functional game to study.
  21.  
  22. mode  dh EGA 320x200x16
  23. mode  eh EGA 640x200x16
  24. mode  fh EGA 640x350x2
  25. mode 10h EGA 640x350x16
  26. mode 11h VGA 640x480x2
  27. mode 12h VGA 640x480x16
  28.  
  29. There's total 104 functions selected from all the Genus GX libraries.
  30. There's pc speaker music, including background playing.
  31. There's 3 ROM fonts.
  32. There's 6 PCX functions.
  33. There's mouse routines, virtual screen support, 10 graphic effects.
  34.  
  35. Hongkong Mahjong was written with Genus GX according to its manual.
  36.  
  37. WEIRD BUGS
  38. ==========
  39.  
  40. - it looks like background music disturbs writing on-screen, at least in
  41. Large model. When updating "points" numbers quite often got scrambled
  42. and the only reason for this that I can think of is background music. I
  43. recompiled drobos in Small model and haven't noticed it anymore. I must
  44. have misused something and then fixed it without knowing it. Now I'm
  45. back in Large model, keeping my fingers crossed and all is well..
  46.  
  47. - using pcx-routines messed up the palette, but that was really caused
  48. by the pcx-file that was created with a Windows 3.1 application. I
  49. loaded the pic into DOS program and saved as another file. All fixed.
  50.  
  51. - cursor flickered very badly, it looked like it was being drawn by the
  52. GPPP as a normal colored picture. Now I use my own mouse routines, so
  53. all troubles with mouse are caused by me.
  54.  
  55. - doesn't restore the used mode *exactly* as it was (hi Ronny :), but
  56. neither do any other similar routine. This is really not a bug.. mode
  57. is just restored in a way, where I have no control over it whatsoever.
  58.  
  59. - in one (network) machine the music was totally unrecognizable, like
  60. the timer INT rate was set way too slow. Could network activity have
  61. messed the background music playing.. it got better after a few tries.
  62.  
  63. - gxSetPaletteColor works in EGA only, so I rewrote all the palette
  64. routines. If there are any trouble related to colors, that's because of
  65. me, not GPPP.
  66.  
  67. - GPPP manual says: grOutText.. the CP does _not_ advance unless the
  68. horizontal justification setting is grTLEFT. Well, the following..
  69.  
  70.     grSetTextJustify(grTCENTER,grTCENTER);
  71.     grMoveTo(100,100); grOutText("test line 1");
  72.     grMoveRel(0,15); grOutText("test line 2");
  73.     grMoveRel(0,15); grOutText("test line 3");
  74.  
  75. ..proves that this is not true. The Current Position (CP) does advance.
  76.  
  77. Summary: please don't get me wrong, I do like this library. There's no
  78. perfect bug-free and fully documented library. If you think you have
  79. one, just send it to and I'll find you a couple "undocumented features".
  80.  
  81. BGI vs. GPPP
  82. ============
  83.  
  84. IMHO GPPP could be faster than BGI and since the virtual screen routines
  85. offer over 64k get/putimage possibilities there's something extra, too.
  86. The graphics effects and music are quite cute..
  87.  
  88. Still BGI has stroked fonts, 256 color palette routines and some useful
  89. functions such as draw/fillpoly, vertical text, arc etc.
  90.  
  91. Most professional game writers want to use only their own routines or at
  92. least have the source available, but for amateurs like me GPPP isn't too
  93. bad, provided that you have some means to fill the holes/nags in GPPP.
  94. The full Genus GX libraries seem quite attractive, but as a poor student
  95. I don't even dare to think about the price..
  96.  
  97. CD ROM SUPPORT
  98. ==============
  99.  
  100. If CDTMP is set and current disk is write-protected, then use the cdtmp
  101. path, else use current directory. If you have a better idea about CD
  102. support, please tell me, too..
  103.  
  104. char    str[128], *cdtmp;
  105. cdtmp = getenv("CDTMP");
  106.  
  107. if (*cdtmp && testdisk()) { strcpy(str,cdtmp); strcat(str,"\\"SCOREFILE); }
  108. else strcpy(str,SCOREFILE);
  109.  
  110. if ((fp = fopen(str,"rb")) == NULL) bogus_score();
  111. else { ... }
  112.  
  113.  
  114. --jouni  jon@stekt.oulu.fi 
  115.  
  116. You have been reading my own personal opinions and nobody has paid me
  117. anything to write good nor bad things about BGI or GPPP. Just IMHO..
  118.