Changeset 12341 for code/branches/OrxoBlox_FS19
- Timestamp:
- May 9, 2019, 10:25:24 AM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw
r12339 r12341 111 111 <attached> 112 112 <!-- Balken die das Spielfeld begrenzen. --> 113 <Model position="0,0,- 50" mesh="cube.mesh" scale3D="45,1,1" />114 <Model position="4 5,0,0" mesh="cube.mesh" scale3D="1,1,50"/>115 <Model position="-4 5,0,0" mesh="cube.mesh" scale3D="1,1,50"/>113 <Model position="0,0,-49" mesh="cube.mesh" scale3D="45,1,1" /> 114 <Model position="46,0,0" mesh="cube.mesh" scale3D="1,1,50"/> 115 <Model position="-46,0,0" mesh="cube.mesh" scale3D="1,1,50"/> 116 116 </attached> 117 117 </OrxoBloxCenterpoint> -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.cc
r12335 r12341 19 19 RegisterObject(OrxoBloxWall); 20 20 21 this->num_Stones_ = 1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;21 this->num_Stones_ = 10; 22 22 this->size_ = 9.0f; 23 23 this->delay_ = false; 24 24 25 this->orxoblox_ = this->getOrxoBlox(); 26 this->center_ = this->orxoblox_->getCenterpoint(); 25 27 this->createWall(); 26 28 } … … 35 37 this->TotalStones_.push_back(stone); 36 38 this->attach(stone); 37 stone->setPosition(size_*i -55.5f, 0, 0.0f); 39 float x_=(this->center_->getFieldDimension()).x; 40 float y_=(this->center_->getFieldDimension()).y; 41 stone->setPosition(size_*i -x_/2 +4.5f, -3.5f, -y_/2 + 6.5f); 38 42 39 43 -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h
r12332 r12341 51 51 bool delay_; 52 52 OrxoBlox* orxoblox_; 53 53 WeakPtr<OrxoBloxCenterpoint> center_; //!< The playing field. 54 54 55 55 };
Note: See TracChangeset
for help on using the changeset viewer.