Changeset 11402 for code/branches/SuperOrxoBros_FS17
- Timestamp:
- Apr 25, 2017, 2:51:44 PM (8 years ago)
- Location:
- code/branches/SuperOrxoBros_FS17
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/data/levels/SOB.oxw
r11400 r11402 128 128 129 129 130 130 <SOBMushroom collisionType="dynamic" speed=30> 131 <attached> 132 <Model mesh="Cube1.1.mesh" position="0,0,20" scale=10/> 133 134 </attached> 135 <collisionShapes> 136 <BoxCollisionShape position="0,0,20" halfExtents="5,5,5" /><!-- 1 --> 137 </collisionShapes> 138 </SOBMushroom> 131 139 132 140 -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/CMakeLists.txt
r11400 r11402 6 6 SOBItem.cc 7 7 SOBQBlock.cc 8 SOBMushroom.cc 8 9 9 10 ) -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOB.cc
r11392 r11402 64 64 this->center_ = nullptr; 65 65 figure_ = nullptr; 66 setHUDTemplate("JumpHUD"); 66 67 67 68 } … … 144 145 } 145 146 147 void SOB::tick(float dt) 148 { 149 SUPER(SOB, tick, dt); 146 150 151 if (this->figure_ != nullptr && figure_->dead_) 152 orxout() << "DEED" << endl; 153 154 } 147 155 148 156 -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOB.h
r11383 r11402 52 52 SOB(Context* context); //!< Constructor. Registers and initializes the object. 53 53 virtual ~SOB(); //!< Destructor. Cleans up, if initialized. 54 virtual void tick(float dt) override; 54 55 55 56 -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBFigure.cc
r11400 r11402 40 40 #include "graphics/ParticleSpawner.h" 41 41 42 #include "SOBMushroom.h" 42 43 43 44 namespace orxonox … … 74 75 75 76 isColliding_ = true; 76 77 SOBMushroom* mush = orxonox_cast<SOBMushroom*>(otherObject); 78 if (mush != nullptr) { 79 orxout() << "YEPPIE" << endl; 80 //DESTROY THE OTHER OBJECT otherObject.destroyLater(); 81 } 77 82 78 83 return true; … … 107 112 108 113 114 109 115 if (firePressed_ == false) { 110 116 gravityAcceleration_ = 350.0; … … 116 122 Vector3 velocity = getVelocity(); 117 123 Vector3 position = getPosition(); 124 125 126 if (position.z < -100) 127 dead_ = true; 118 128 119 129 if (dead_) { -
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBPrereqs.h
r11400 r11402 79 79 class SOBItem; 80 80 class SOBQBlock; 81 class SOBMushroom; 81 82 /* 82 83 class PongScore;*/
Note: See TracChangeset
for help on using the changeset viewer.