Advertisement

***Problem Updating Scores & glLoadIdentity***

Started by March 14, 2005 08:15 AM
0 comments, last by BangorRipper 19 years, 8 months ago
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]
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

This topic is closed to new replies.

Advertisement