Friday, April 11, 2014

Killing Machine

In this project a gun shoots bullets, three at a time. It needs to be reloaded by pressing right mouse button. Left mouse button to shoot.

Snapshots:





Here is the source.

12 comments:

  1. This project code is not firing bullet on mouse click.. Help plzzz...

    ReplyDelete
  2. Hi sorry for late reply... As i had written above the gun needs to be reloaded by clicking right mouse button and then on pressing left mouse button it releases 3 bullets in succession like the INSAS rifle. If you want AK-47 kind of behaviour u need to modify the code. Please tell what all you tried doing about it not working and i shall help you.

    ReplyDelete
    Replies
    1. I simply compiled your code and tried to run. But despite of pressing left and right mouse button the bullet is not getting fired.

      Delete
    2. I simply compiled your code and tried to run. But despite of pressing left and right mouse button the bullet is not getting fired.

      Delete
    3. First press right mouse button and then left. I will try to run and see for myself tonight.

      Delete
    4. I had the same problem i solved it by changing the line number 496 where there is GLUT_DOUBLE make it GLUT_SINGLE

      Delete
  3. m getting the exit error c:4985 and c:2381 that.. exit previously not defined

    ReplyDelete
  4. Can I get the complete report....of this code....

    ReplyDelete
    Replies
    1. Ok but even though bullets hit the target....scores not updating....y is tht??

      Delete
    2. These were the guidelines that I gave my students and they all were able to do the report themselves. Here is the guidelines. http://cglabprojects.blogspot.in/2013/05/project-report-guidelines-computer.html .... There are some sample reports from where you can copy the material. Add something regarding your project in those sections where it needs to be changed.

      Delete