Results 1 to 2 of 2

Thread: Collesion detection in the game of Asteroids

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Location
    California, USA
    Posts
    7

    Exclamation Collesion detection in the game of Asteroids

    I am making Asteroids and have almost everything working except for collision detection. I know what must be done (when the one image, say for a laser, overlaps onto an image for an asteroid, the computer must detect that this has happened and must make both react according).


    I know how to do everything before and after detection, but I do not know how to get the program to detect a collision.


    Help is greatly appreciated.



    Sharkface217

  2. #2
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: Collesion detection in the game of Asteroids

    ask if the x and y values of the laser are in the range or the span of the x and y values of the astoriod
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width