Changeset 12144 for code/branches/OrxoKart_HS18/src/modules/orxokart
- Timestamp:
- Dec 5, 2018, 10:48:32 AM (6 years ago)
- Location:
- code/branches/OrxoKart_HS18/src/modules/orxokart
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoKart_HS18/src/modules/orxokart/CMakeLists.txt
r12108 r12144 5 5 OrxoKartOrigin.cc 6 6 OrxoKartFlag.cc 7 ShroomHUD.cc 7 8 TimeHUD.cc 8 9 ) -
code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKart.cc
r12128 r12144 50 50 this->raceFinished = false; 51 51 this->firstTick_ = true; 52 this->numberOfShrooms = 3; 52 53 53 54 this->setHUDTemplate("OrxoKartHUD"); … … 181 182 OrxoKartKart* player = flag_->getObjectofCollision(); 182 183 if (level == 1) 183 player->setPosition(Vector3(s*0, 20, s*8 ));184 player->setPosition(Vector3(s*0, 20, s*8.5)); 184 185 if (level == 2) 185 player->setPosition(Vector3(s*0, 20, s*18 ));186 player->setPosition(Vector3(s*0, 20, s*18.5)); 186 187 player->setOrientation(Quaternion(1, 0, 0, 0)); // 0, 0, 0 187 188 player->setVelocity(Vector3(0,0,0)); -
code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKart.h
r12128 r12144 57 57 inline int getRaceFinished() const 58 58 { return this->raceFinished; } 59 inline int getNumberOfShrooms() const 60 { return this->numberOfShrooms; } 59 61 60 62 private: … … 68 70 bool firstTick_; 69 71 72 int numberOfShrooms; 73 70 74 int s; 71 75 int n; -
code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKartPrereqs.h
r12108 r12144 74 74 class OrxoKartTile; 75 75 class TimeHUD; 76 class ShroomHUD; 76 77 } 77 78 -
code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKartTile.cc
r12128 r12144 48 48 this->model_ = nullptr; 49 49 this->cs_ = nullptr; 50 this->arc = nullptr; 50 51 51 52 this->enableCollisionCallback(); … … 66 67 if (this->cs_) 67 68 this->cs_->destroy(); 69 if (this->arc) 70 this->arc->destroy(); 68 71 } 69 72 } … … 90 93 else if (type == 2 ) { 91 94 model_->setMeshSource("OrxoKartStreckenabschnittZiel.mesh"); 95 96 arc = new Model(this->getContext()); 97 arc->setMeshSource("OrxoKartStartTor.mesh"); 98 arc->setPosition(Vector3(x*1.0f, -1.0f, z*1.0f)); 99 arc->setScale3D(Vector3(s*1.0f/10, s*1.0f/10, s*1.0f/10)); 100 arc->yaw(Degree(-90)); 101 this->attach(arc); 92 102 } 93 103 model_->setScale3D(Vector3(s*1.0f, 8.0f, s*1.0f)); -
code/branches/OrxoKart_HS18/src/modules/orxokart/OrxoKartTile.h
r12128 r12144 65 65 private: 66 66 Model* model_; 67 Model* arc; 67 68 BoxCollisionShape* cs_; 68 69 bool collided_;
Note: See TracChangeset
for help on using the changeset viewer.