Changeset 1899 in orxonox.OLD for orxonox/trunk/core/orxonox.cc
- Timestamp:
- May 20, 2004, 1:03:53 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/orxonox.cc
r1897 r1899 99 99 { 100 100 glClearColor(0.0, 0.0, 0.0, 0.0); 101 102 /* world init, shouldnt be done here later */ 101 103 world = new World; 102 104 (*world).initEnvironement(); 103 105 localPlayer = new Player; 106 localPlayer->setPosition(0.0, -10.0, 3.0); 104 107 io = new InputOutput(world, localPlayer); 105 108 (*world).addPlayer(localPlayer); 106 109 Environment *env = new Environment; 107 110 (*world).addEnv(env); 111 NPC* npc = new NPC; 112 npc->setPosition(3.0, 0.0, 3.0); 113 npc->setCollisionRadius(1.0); 114 world->addNPC(npc); 108 115 109 116 glutSpecialFunc(specFunc); … … 248 255 /* increment the frames-per-second counter*/ 249 256 fps++; 257 /* check for collisions */ 258 world->detectCollision(); 259 250 260 /* check for input to pass it over */ 251 261 if ( !pause && (rightWeGo || leftWeGo || upWeGo || downWeGo || shoot1)) {
Note: See TracChangeset
for help on using the changeset viewer.