Changeset 11392 for code/branches/SuperOrxoBros_FS17/src
- Timestamp:
- Apr 6, 2017, 3:32:35 PM (8 years ago)
- Location:
- code/branches/SuperOrxoBros_FS17/src/modules/superorxobros
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/CMakeLists.txt
r11378 r11392 4 4 SOB.cc 5 5 SOBFigure.cc 6 SOBItem.cc 6 7 7 8 -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/Orxo.h
r11370 r11392 49 49 virtual void tick(float dt) override; 50 50 51 51 52 // overwrite for 2d movement 52 53 virtual void moveFrontBack(const Vector2& value) override; … … 57 58 58 59 //no rotation! 59 virtual void rotateYaw(const Vector2& value) override{}; 60 virtual void rotateYaw(const Vector2& value) override{}; 60 61 virtual void rotatePitch(const Vector2& value) override{}; 61 62 //return to main menu if game has ended. -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOB.cc
r11383 r11392 50 50 namespace orxonox 51 51 { 52 52 53 53 RegisterUnloadableClass(SOB); 54 54 … … 89 89 { 90 90 figure_ = new SOBFigure(center_->getContext()); 91 figure_->addTemplate(center_->getFigureTemplate()); 91 figure_->addTemplate(center_->getFigureTemplate()); 92 92 // figure_->InitializeAnimation(center_->getContext()); //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 93 93 } 94 94 95 center_->attach(figure_); 95 center_->attach(figure_); 96 96 figure_->setPosition(0, 0, 0); 97 97 } … … 111 111 } 112 112 113 // totalScreenShift_ = 0.0;114 // screenShiftSinceLastUpdate_ = 0.0;115 //sectionNumber_ = 0;116 //adventureNumber_ = 0;117 118 //addStartSection();119 // addSection();120 // addSection();121 113 } 122 114 … … 125 117 cleanup(); 126 118 GSLevel::startMainMenu(); 127 119 128 120 Deathmatch::end(); 129 121 } … … 153 145 154 146 155 156 147 148 157 149 } -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBCenterpoint.h
r11381 r11392 48 48 49 49 void setFigureTemplate(const std::string& newTemplate) 50 { this->figureTemplate_ = newTemplate; } 50 { this->figureTemplate_ = newTemplate; 51 } 51 52 const std::string& getFigureTemplate() const 52 53 { return this->figureTemplate_; } … … 57 58 float getCameraOffset() const 58 59 { return cameraOffset_; } 60 61 59 62 private: 60 63 void checkGametype(); -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBFigure.cc
r11383 r11392 39 39 #include "graphics/Camera.h" 40 40 41 42 41 namespace orxonox 43 42 { … … 58 57 lastSpeed_z = 0.0; 59 58 60 gravityAcceleration_ = 250.0;//8.0 59 gravityAcceleration_ = 250.0; 60 pitch_ = 0.0; 61 61 62 62 dead_ = false; … … 99 99 if (firePressed_ && std::abs(velocity.z) < 0.07 && std::abs(lastSpeed_z) < 0.07) { 100 100 velocity.z = 150; 101 } 101 } 102 103 // rotate(1,getOrientation()* WorldEntity::FRONT) 102 104 103 105 //Left-right movement with acceleration … … 105 107 if (std::abs(velocity.x) < maxvelocity_x) { 106 108 velocity.x += speedAddedPerTick; 109 // if (pitch_ > 0.0) { 110 // pitch -= turn_fac*dt); 111 // } 107 112 } 108 113 } else if (moveLeftPressed_) { … … 112 117 } else { 113 118 velocity.x /= 1.1; 114 } 115 119 } 120 116 121 117 122 velocity.z -= gravityAcceleration_*dt; … … 134 139 135 140 141 136 142 } 137 143 … … 149 155 150 156 } 151 152 153 154 155 156 /* void SOBFigure::CollisionWithEnemy(SOBEnemy* enemy)157 {158 if (rocketActive_ == nullptr && propellerActive_ == nullptr && shieldActive_ == nullptr)159 {160 dead_ = true;161 }162 }*/163 157 164 158 -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBFigure.h
r11383 r11392 48 48 virtual void boost(bool boost) override; 49 49 50 50 51 //virtual void CollisionWithEnemy(SOBEnemy* enemy); 51 52 … … 66 67 float timeSinceLastFire_; 67 68 float lastSpeed_z; 69 SOBCenterpoint* sobcenterpoint; 70 float pitch_; 68 71 69 72 -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBPrereqs.h
r11379 r11392 77 77 class SOB; 78 78 class SOBFigure; 79 class SOBItem; 79 80 /* 80 81 class PongScore;*/
Note: See TracChangeset
for help on using the changeset viewer.