Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1918 in orxonox.OLD


Ignore:
Timestamp:
Jun 7, 2004, 9:58:07 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: ground moves slower and with env and npc

Location:
orxonox/trunk/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/orxonox.cc

    r1917 r1918  
    256256  glColor3f(0.0, 0.5, 0.6);
    257257  glLoadIdentity();
    258   gluLookAt(0.0, -14.0, 15.0, 0.0 + alpha, 0.0 + beta, 0.0, 0.0, 1.0, 0.0);
     258  gluLookAt(0.0, -14.0, 15.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
    259259  (*world).drawWorld();
    260260
  • orxonox/trunk/core/world.cc

    r1917 r1918  
    149149void World::drawWorld(void)
    150150{
     151  glLoadIdentity();
     152  gluLookAt(0.0, -14.0 + primitiveMove, 15.0, 0.0, 0.0 + primitiveMove, 0.0, 0.0, 1.0, 0.0);
    151153  /* first draw all players */
    152154  playerList* tmpPlayer = lastPlayer;
     
    165167    }
    166168
    167   glPushMatrix();
    168   glTranslatef(0.0, -primitiveMove, 0.0);
     169
     170  //glPushMatrix();
     171  //glTranslatef(0.0, -primitiveMove, 0.0);
    169172
    170173  /* now draw the rest of the world: environement */
     
    181184  glBegin(GL_LINES);
    182185  /* for the moment, we've got only pseudo moving ground */
    183  for (int y = 0; y < 60; y += 2)
     186  for (int y = 0; y < 60; y += 2)
    184187    {
    185188      for (int x = 0; x < 60; x += 2)
     
    190193    }
    191194 glEnd();
    192   glPopMatrix();
     195 //glPopMatrix();
    193196 
    194197  glBegin(GL_LINES);
     
    204207
    205208
    206   primitiveMove+=0.1;
     209  primitiveMove+=0.07;
    207210}
    208211
Note: See TracChangeset for help on using the changeset viewer.