Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2242 in orxonox.OLD for orxonox/branches/dave/core/orxonox.cc


Ignore:
Timestamp:
Jul 25, 2004, 10:00:08 PM (20 years ago)
Author:
dave
Message:

orxonox/branches/dave: habe wieder mal was gemacht:)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/dave/core/orxonox.cc

    r1994 r2242  
    7373int Orxonox::globalInit (int argc, char** argv)
    7474{
    75   glEnable(GL_DEPTH_TEST);
     75  //glEnable(GL_DEPTH_TEST);
    7676  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    7777  glutInit(&argc, argv);
    7878  glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB | GLUT_DEPTH);
    7979  glEnable(GL_NORMALIZE);
    80   glEnable(GL_COLOR_MATERIAL);
     80 
     81 
     82  //glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,1);
     83 
     84 
     85 
     86 
     87 
     88 
    8189  /*glEnable(GL_LIGHT0);
    8290  glEnable(GL_LIGHTING);
     
    137145  npc->setCollisionRadius(1.0);
    138146  world->addNPC(npc);
    139 
    140   NPC* npc2 = new NPC;
    141   npc2->setPosition(-2.0, 10.0, 3.0);
    142   npc2->setCollisionRadius(1.0);
     147 
     148  NPC* npc2=new NPC;
     149  npc2->setPosition(3,10,3);
     150  npc2->setCollisionRadius(1);
    143151  world->addNPC(npc2);
    144  
    145   NPC* npc3 = new NPC;
    146   npc3->setPosition(3.0, 30.0, 3.0);
    147   npc3->setCollisionRadius(1.0);
    148   world->addNPC(npc3);
    149  
    150   NPC* npc4 = new NPC;
    151   npc4->setPosition(-2.0, 35.0, 3.0);
    152   npc4->setCollisionRadius(1.0);
    153   world->addNPC(npc4);
    154  
    155   NPC* npc5 = new NPC;
    156   npc5->setPosition(5.0, 45.0, 3.0);
    157   npc5->setCollisionRadius(1.0);
    158   world->addNPC(npc5);
    159152
    160153  glutSpecialFunc(specFunc);
     
    173166  /* this is very very unsafe: io could be uninit */
    174167  io->setPlayerStep(19.0/fps); /* set player to propper speed */
    175   localPlayer->shootLaser->setShootStep(20.0/fps); /* set shoot speed */
    176   world->setWorldStep(7.0/fps); /* set the speed of the terrain moving away */
     168  localPlayer->shootLaser->setShootStep(400.0/fps); /* set shoot speed */
     169  world->setWorldStep(5.0/fps); /* set the speed of the terrain moving away */
    177170  fps = 0;
    178171  inputEnabled = true;
Note: See TracChangeset for help on using the changeset viewer.