Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2011, 9:07:33 PM (13 years ago)
Author:
dafrick
Message:

Works now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tetris/src/modules/tetris/TetrisStone.cc

    r8537 r8563  
    5454        this->delay_ = false;
    5555        this->delayTimer_.setTimer(0.2f, false, createExecutor(createFunctor(&TetrisStone::enableMovement, this)));
    56         this->previousPosition_ = Vector3::ZERO;
    57     }
    58 
    59     void TetrisStone::tick(float dt)
    60     {
    61         SUPER(TetrisStone, tick, dt);
    6256    }
    6357
     
    7064    void TetrisStone::moveFrontBack(const Vector2& value)
    7165    {
    72        
     66        if(value.x < 0)
     67        {
     68            this->setVelocity(this->getVelocity()*1.1);
     69        }
    7370    }
    7471
     
    8582            const Vector3& position = this->getPosition();
    8683            Vector3 newPos = Vector3(position.x+value.x/abs(value.x)*this->size_, position.y, position.z);
    87             if(!this->tetris_->isValidMove(this, newPos))
     84            if(!this->tetris_->isValidMove(this, newPos).first)
    8885                return;
    8986
Note: See TracChangeset for help on using the changeset viewer.