Changeset 2242 in orxonox.OLD for orxonox/branches/dave/core/orxonox.cc
- Timestamp:
- Jul 25, 2004, 10:00:08 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/dave/core/orxonox.cc
r1994 r2242 73 73 int Orxonox::globalInit (int argc, char** argv) 74 74 { 75 glEnable(GL_DEPTH_TEST);75 //glEnable(GL_DEPTH_TEST); 76 76 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 77 77 glutInit(&argc, argv); 78 78 glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB | GLUT_DEPTH); 79 79 glEnable(GL_NORMALIZE); 80 glEnable(GL_COLOR_MATERIAL); 80 81 82 //glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,1); 83 84 85 86 87 88 81 89 /*glEnable(GL_LIGHT0); 82 90 glEnable(GL_LIGHTING); … … 137 145 npc->setCollisionRadius(1.0); 138 146 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); 143 151 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);159 152 160 153 glutSpecialFunc(specFunc); … … 173 166 /* this is very very unsafe: io could be uninit */ 174 167 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 */ 177 170 fps = 0; 178 171 inputEnabled = true;
Note: See TracChangeset
for help on using the changeset viewer.