Changeset 3279 in orxonox.OLD for orxonox/branches
- Timestamp:
- Dec 25, 2004, 3:03:04 PM (20 years ago)
- Location:
- orxonox/branches/old.dave/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/old.dave/src/camera.cc
r2636 r3279 206 206 // view 207 207 // TO DO: implement options for frustum generation 208 glFrustum(-1.0, 1.0, -1.0, 1.0, 1.5, 250.0);208 glFrustum(-1.0, 1.0, -1.0, 1.0, 1.5, 400.0); 209 209 //Vector up(0,0,1); 210 210 //Vector dir(1,0,0); -
orxonox/branches/old.dave/src/command_node.cc
r3172 r3279 183 183 strcpy (cmd.cmd, aliases->keys[event.key.keysym.sym]); 184 184 cmd.bUp = false; 185 185 cmd.NumPressed+=1; 186 186 187 187 if( strlen (cmd.cmd) > 0) relay (&cmd); … … 190 190 strcpy( cmd.cmd, aliases->keys[event.key.keysym.sym]); 191 191 cmd.bUp = true; 192 cmd.NumPressed-=1; 192 193 193 194 -
orxonox/branches/old.dave/src/message_structures.h
r3172 r3279 11 11 //! structure that contains a command message 12 12 typedef struct 13 { float tottime; 13 { int NumPressed; 14 float tottime; 14 15 float rottime; 15 16 float angle; -
orxonox/branches/old.dave/src/orxonox.cc
r3151 r3279 135 135 SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 16); 136 136 137 int bpp = 16;138 int width = 640;139 int height = 480;137 int bpp = 32; 138 int width = 1024; 139 int height = 768; 140 140 Uint32 flags = SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER; 141 141 -
orxonox/branches/old.dave/src/player.cc
r3172 r3279 28 28 29 29 obj = new Object ("reaplow.obj"); 30 numPressed=0; 30 31 tottime=0.0f; 32 numPressed=0; 31 33 movfinishright=movfinishleft=movfinishup=movfinishdown=false; 32 34 angleturn=false; … … 95 97 { 96 98 //printf("Player|recieved command [%s]\n", cmd->cmd); 97 98 tottime=cmd->tottime;99 numPressed=cmd->NumPressed; 100 99 101 rottime=cmd->rottime; 100 angleturn=cmd->angleturn; 102 if(numPressed<1){ 103 tottime=cmd->tottime; 104 angleturn=cmd->angleturn; 105 } 106 101 107 102 108 … … 208 214 if( bDown) { accel = accel-(direction*acceleration*pow(tottime,2.0f));movfinishdown=true;tottimecopy=tottime; } 209 215 if( bLeft ) { accel = accel + (orthDirection*acceleration*pow(tottime,2.0f)); 210 if(angle>- 40.0f){211 angle=angle-rottime* 40.0f;}216 if(angle>-20.0f){ 217 angle=angle-rottime*20.0f;} 212 218 movfinishleft=true; 213 219 tottimecopy=tottime;} 214 220 if( bRight ) { accel = accel - (orthDirection*acceleration*pow(tottime,2.0f)); 215 if(angle< 40.0f){216 angle=angle+rottime* 40.0f;}221 if(angle<20.0f){ 222 angle=angle+rottime*20.0f;} 217 223 movfinishright=true; 218 224 tottimecopy=tottime; -
orxonox/branches/old.dave/src/player.h
r3172 r3279 44 44 float rottime; 45 45 float angle; 46 int numPressed; 46 47 bool angleturn; 47 48 bool movfinishright,movfinishleft,movfinishup,movfinishdown; -
orxonox/branches/old.dave/src/track.cc
r2636 r3279 76 76 // camplc->w = Quaternion (trace.a, Vector(0,0,1)); 77 77 float r = (lookat->dist)*PI / l; 78 camplc->r = trace.r + (trace.a * ((lookat->dist-1 0.0) / l)) + Vector(0,0,5.0);78 camplc->r = trace.r + (trace.a * ((lookat->dist-18.0) / l)) + Vector(0,0,12.0); 79 79 80 80 Vector w(0.0,0.0,0.0); -
orxonox/branches/old.dave/src/world.cc
r3155 r3279 343 343 344 344 } 345 */345 346 346 //draw track 347 347 glBegin(GL_LINES); … … 352 352 glVertex3f(pathnodes[(i+1)%tracklen].x,pathnodes[(i+1)%tracklen].y,pathnodes[(i+1)%tracklen].z); 353 353 } 354 glEnd(); 354 glEnd();*/ 355 355 glEndList(); 356 356 357 } 357 358
Note: See TracChangeset
for help on using the changeset viewer.