Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12341 for code/branches


Ignore:
Timestamp:
May 9, 2019, 10:25:24 AM (6 years ago)
Author:
ahuwyler
Message:

Wall is ready

Location:
code/branches/OrxoBlox_FS19
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/data/levels/orxoblox.oxw

    r12339 r12341  
    111111          <attached>
    112112            <!-- Balken die das Spielfeld begrenzen. -->
    113             <Model position="0,0,-50" mesh="cube.mesh" scale3D="45,1,1" />
    114             <Model position="45,0,0" mesh="cube.mesh" scale3D="1,1,50"/>
    115             <Model position="-45,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"/>
    116116          </attached>
    117117        </OrxoBloxCenterpoint>
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.cc

    r12335 r12341  
    1919        RegisterObject(OrxoBloxWall);
    2020
    21         this->num_Stones_ = 1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;
     21        this->num_Stones_ = 10;
    2222        this->size_ = 9.0f;
    2323        this->delay_ = false;
     24
    2425        this->orxoblox_ = this->getOrxoBlox();
     26        this->center_ = this->orxoblox_->getCenterpoint();
    2527        this->createWall();
    2628    }
     
    3537                this->TotalStones_.push_back(stone);
    3638                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);
    3842
    3943
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h

    r12332 r12341  
    5151            bool delay_;
    5252            OrxoBlox* orxoblox_;
    53            
     53            WeakPtr<OrxoBloxCenterpoint> center_; //!< The playing field.
    5454
    5555    };
Note: See TracChangeset for help on using the changeset viewer.