• Advertisement
Sign in to follow this  

***Problem Updating Scores & glLoadIdentity***

This topic is 4730 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

the following is my mainloop() which contains a call to my updatePlayerScore methods which adds the value of the passed parameter to the player's current score: mainloop() if(bulletCreated) { if(shipBullet.bulletMissed()) { updatePlayerScore(-100); bulletCreated = false; } } and mainloop() is called once every loop from within the run() method why though, does 100 get taken off when i miss, but then a further 100 is subtracted the next time i shoot?? this is by the way, the only place that a score is subtracted thanks [Edited by - BangorRipper on March 14, 2005 12:02:40 PM]

Share this post


Link to post
Share on other sites
Advertisement
also..
if i keep calling GL11.glLoadIdentity() before i draw each model, would each model then be drawn relative to the same point? because i thought that it returned us to 0,0,0?? However with a GLU.gluLookAt(0,20,80, 0,0,0, 0,1,0); if i call loadIdentity and then draw a model, without translating, i cannot see it
thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement