home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / rec / games / programm / 5503 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.9 KB  |  42 lines

  1. Newsgroups: rec.games.programmer
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!void.ncsa.uiuc.edu!jonm
  3. From: jonm@void.ncsa.uiuc.edu (Jon E. Mittelhauser)
  4. Subject: Re: PC Graphics (animation)
  5. References: <1993Jan21.082235.505680@zeus.calpoly.edu> <SCD.93Jan21175136@nevar.cs.brown.edu>
  6. Message-ID: <C1Buny.F6F@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: Nat'l Center for Supercomputing Applications
  9. Date: Sat, 23 Jan 1993 22:04:46 GMT
  10. Lines: 30
  11.  
  12. scd@cs.brown.edu (Steven C. Dollins) writes:
  13. >
  14. >Xspace and Netspace store an array of flags, two for each key.  One
  15. >flag has the current state of the key, up or down, and the other is
  16. >set only when the key is pressed.  In your game loop, if the second
  17. >flag is set, then the key was pressed within the past loop (note that
  18. >it need no longer be pressed.)  Act on the keypress and then reset it
  19. >with the value of the first key.
  20. >
  21. >                    - Steven Dollins
  22. >Brown Computer Graphics Group        scd@cs.brown.edu
  23. >
  24. >Here is the assembly source code used for the keyboard interrupt
  25. >(int09) and the timer interrupt (int1C) in our games:
  26.  
  27.    Just a slight warning and appeal for information.  This is very good
  28. code, but we have recieved a small number of people who have systems
  29. on which the key code for Netspace doesn't work.  We haven't been able
  30. to duplicate the problem ourselves to try to fix it.  The people with
  31. problems seem to be running fairly complex setups (e.g. DR-DOS and QEMM and
  32. various other memory managers).   We haven't been able to track down a single
  33. cause for the problem.  If you get this code and it doesn't work for your
  34. setup, please mail me with information concerning your set-up.  Even better,
  35. if you find what is causing the problem please let me know.
  36.    Again, this _is_ good code.  It works on 99.9% of the computers which
  37. run Netspace/Xspace.  I simply would like to try to find the cause for that
  38. .1% problem.  :^)
  39.  
  40. -Jon (jonm@ncsa.uiuc.edu)
  41.  
  42.