home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / meteor.pak / README.TXT < prev    next >
Text File  |  1997-07-23  |  1KB  |  24 lines

  1.  
  2. Turbo Meteor is a simple example of how to do line-based animation under
  3. windows.  There is much room for improvement in this example.  The
  4. following are some suggested improvement you can make:
  5.  
  6. Improved collision detection:  currently, Turbo Meteor uses simple bounding
  7. rectangle tests for collision detection.  This is fast, but innacurrate.
  8. A faster method would be to use bounding circles for the quick test, and
  9. then a full point-in-polygon test for the final test.
  10.  
  11. Object type identification:  All the sprites are stored in a single list.
  12. This creates a problem when testing for collisions, because we only want
  13. to check for collisions between shots and meteors, not between shots and
  14. other shots.  So as we traverse the list, we must query each object to
  15. see what type it is.  Currently this is done based on a 'name' member of
  16. each object.  This is slow, because it requires a strcmp() call.  A better
  17. way would be to either use RTTI, or implement a simple 'type' member which
  18. is an integer instead of a string.
  19.  
  20.  
  21.  
  22.  
  23.  
  24.