Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3279 in orxonox.OLD for orxonox/branches/old.dave


Ignore:
Timestamp:
Dec 25, 2004, 3:03:04 PM (19 years ago)
Author:
dave
Message:

branches/old.dave: Die Neigung des Raumschiffes ist jetzt nicht mehr so stark, und jetzt kann man auch 2 Tasten aufs mal drücken, ohne dass das Raumschiffsche jedes mal anhält:)

Location:
orxonox/branches/old.dave/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/old.dave/src/camera.cc

    r2636 r3279  
    206206  // view
    207207  // 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);
    209209  //Vector up(0,0,1);
    210210  //Vector dir(1,0,0);
  • orxonox/branches/old.dave/src/command_node.cc

    r3172 r3279  
    183183          strcpy (cmd.cmd, aliases->keys[event.key.keysym.sym]);
    184184          cmd.bUp = false;
    185          
     185          cmd.NumPressed+=1;
    186186         
    187187          if( strlen (cmd.cmd) > 0) relay (&cmd);
     
    190190          strcpy( cmd.cmd, aliases->keys[event.key.keysym.sym]);
    191191          cmd.bUp = true;
     192          cmd.NumPressed-=1;
    192193         
    193194         
  • orxonox/branches/old.dave/src/message_structures.h

    r3172 r3279  
    1111//! structure that contains a command message
    1212typedef struct
    13 {       float tottime;
     13{       int NumPressed;
     14        float tottime;
    1415        float rottime;
    1516        float angle;
  • orxonox/branches/old.dave/src/orxonox.cc

    r3151 r3279  
    135135  SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 16);
    136136 
    137   int bpp = 16;
    138   int width = 640;
    139   int height = 480;
     137  int bpp = 32;
     138  int width = 1024;
     139  int height = 768;
    140140  Uint32 flags = SDL_HWSURFACE | SDL_OPENGL | SDL_GL_DOUBLEBUFFER;
    141141 
  • orxonox/branches/old.dave/src/player.cc

    r3172 r3279  
    2828
    2929  obj = new Object ("reaplow.obj");
     30  numPressed=0;
    3031  tottime=0.0f;
     32  numPressed=0;
    3133  movfinishright=movfinishleft=movfinishup=movfinishdown=false;
    3234  angleturn=false;
     
    9597{
    9698  //printf("Player|recieved command [%s]\n", cmd->cmd);
    97  
    98   tottime=cmd->tottime;
     99  numPressed=cmd->NumPressed;
     100 
    99101  rottime=cmd->rottime;
    100   angleturn=cmd->angleturn;
     102  if(numPressed<1){
     103        tottime=cmd->tottime;
     104        angleturn=cmd->angleturn;
     105  }
     106 
    101107 
    102108 
     
    208214  if( bDown) { accel = accel-(direction*acceleration*pow(tottime,2.0f));movfinishdown=true;tottimecopy=tottime; }
    209215  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;}
    212218        movfinishleft=true;
    213219        tottimecopy=tottime;}
    214220  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;}
    217223          movfinishright=true;
    218224          tottimecopy=tottime;
  • orxonox/branches/old.dave/src/player.h

    r3172 r3279  
    4444  float rottime;
    4545  float angle;
     46  int numPressed;
    4647  bool angleturn;
    4748  bool movfinishright,movfinishleft,movfinishup,movfinishdown;
  • orxonox/branches/old.dave/src/track.cc

    r2636 r3279  
    7676  //    camplc->w = Quaternion (trace.a, Vector(0,0,1));
    7777  float r = (lookat->dist)*PI / l;
    78   camplc->r = trace.r + (trace.a * ((lookat->dist-10.0) / l)) + Vector(0,0,5.0);
     78  camplc->r = trace.r + (trace.a * ((lookat->dist-18.0) / l)) + Vector(0,0,12.0);
    7979 
    8080  Vector w(0.0,0.0,0.0);
  • orxonox/branches/old.dave/src/world.cc

    r3155 r3279  
    343343     
    344344    }
    345   */ 
     345   
    346346  //draw track
    347347  glBegin(GL_LINES);
     
    352352      glVertex3f(pathnodes[(i+1)%tracklen].x,pathnodes[(i+1)%tracklen].y,pathnodes[(i+1)%tracklen].z);
    353353    }
    354   glEnd();
     354  glEnd();*/
    355355  glEndList();
     356 
    356357}
    357358
Note: See TracChangeset for help on using the changeset viewer.