Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2019, 3:52:29 PM (5 years ago)
Author:
ahuwyler
Message:

jetzt mehrere Bloecke

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.cc

    r12331 r12332  
    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_ = 2;//1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;
     22        this->size_ = 10.0f;
    2223        this->delay_ = false;
    2324        this->orxoblox_ = this->getOrxoBlox();
     
    2728
    2829    void OrxoBloxWall::createWall(void){
    29 
     30        orxout() <<"Hello idiot"<< endl;
    3031        for (unsigned int i=0; i<this->num_Stones_;++i){
     32            orxout() <<i<< endl;
    3133            OrxoBloxStones* stone = new OrxoBloxStones(this->getContext());
    32 
    33 
    3434            this->TotalStones_.push_back(stone);
    3535            this->attach(stone);
    36            
    37             stone->setPosition(0.0f, i, 0.0f);
     36            stone->setPosition(size_*i, 0, 0.0f);
    3837
    3938
Note: See TracChangeset for help on using the changeset viewer.