Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9948 in orxonox.OLD


Ignore:
Timestamp:
Nov 22, 2006, 5:48:53 PM (17 years ago)
Author:
muellmic
Message:

adapted scripts for having a testlevel.

Location:
branches/playability/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/spacecraft_2d.cc

    r9869 r9948  
    272272{
    273273  dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( true);
    274   this->setPlaymode(this->getPlaymode());
     274//   this->setPlaymode(this->getPlaymode());
     275  this->setPlaymode(Playable::Horizontal);
     276  this->setTravelSpeed(10.0f);
    275277}
    276278
  • branches/playability/src/world_entities/test_entity.cc

    r9928 r9948  
    8686}
    8787
     88void TestEntity::draw() const
     89{
     90//   if(!mediaLoaded)
     91//     false;
    8892
     93  glPushAttrib(GL_ENABLE_BIT);
     94  glDisable(GL_LIGHTING);
     95//   glDisable(GL_BLEND);
     96//
     97//   glEnable(GL_TEXTURE_2D);
     98//   glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));
     99
     100  glPushMatrix();
     101 /* glTranslatef (this->getAbsCoor ().x,
     102                this->getAbsCoor ().y,
     103                this->getAbsCoor ().z);
     104  glRotatef(axis, 0.0f, 1.0f, 0.0f);*/
     105//PRINTF(0)("axis: %f\n", axis);
     106
     107  glColor3f(1.0, 0, 0);
     108
     109  glBegin(GL_QUADS);
     110//     glTexCoord2f(1.0f, 1.0f);
     111    glVertex3f( 0.0f, 0.0f,  0.0f );
     112//     glTexCoord2f(0.0f, 1.0f);
     113    glVertex3f( 1000.0f, 0.0f, 0.0f );
     114//     glTexCoord2f(0.0f, 0.0f);
     115    glVertex3f( 1000.0f, 0.0f, 200.0f );
     116//     glTexCoord2f(1.0f, 0.0f);
     117    glVertex3f( 0.0f, 0.0f,  200.0f);
     118  glEnd();
     119
     120  glPopMatrix();
     121  glPopAttrib();
     122}
    89123
    90124/**
     
    98132
    99133
    100 /**
    101  *
    102  */
    103 void TestEntity::draw() const
    104 {
    105 
    106 }
    107134
    108135
Note: See TracChangeset for help on using the changeset viewer.