Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12351


Ignore:
Timestamp:
May 9, 2019, 1:59:07 PM (5 years ago)
Author:
ahuwyler
Message:

Walls are coming down

File:
1 edited

Legend:

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

    r12350 r12351  
    188188        // Call end for the parent class.
    189189        Deathmatch::end();
     190        GSLevel::startMainMenu();
    190191    }
    191192
     
    216217    void OrxoBlox::LevelUp(){
    217218        level_++;
     219
     220        for(OrxoBloxWall* Wall : this->activeWalls_){
     221            int z_=(Wall->getPosition()).z;
     222            if(z_==90)this->end();
     223            Wall->setPosition(0,0,z_+9.0f);
     224        }
    218225        this->createWall();
    219 
    220         for(OrxoBloxWall* Wall : this->activeWalls_){
    221             int x_=(Wall->getPosition()).x;
    222             orxout()<<x_<<endl;
    223             Wall->setPosition(0,0,x_+10.0f);
    224         }
    225 
    226226        this->activeWalls_.push_back(this->futureWall_);
    227227        for (int i = 0; i < this->futureWall_->getNumberOfStones(); i++) {
Note: See TracChangeset for help on using the changeset viewer.