Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2013, 5:43:39 PM (11 years ago)
Author:
zifloria
Message:

no ending, no crash

Location:
code/branches/invaders
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/invaders/data/levels/Invaders.oxw

    r9828 r9866  
    11<LevelInfo
    2  name = "Invader Test"
    3  description = "Invader Test"
    4  tags = "test"
     2 name = "Orxonox Arcade"
     3 description = "Arcade shooter. Maximise your points!!!"
     4 tags = "minigame"
    55 screenshot = "emptylevel.png"
    66/>
  • code/branches/invaders/src/modules/invader/Invader.cc

    r9858 r9866  
    139139    void Invader::end()
    140140    {
     141        orxout() << "STOP THE GAME, CHEATER!!!" << endl;
    141142        // Call end for the parent class.
    142         Deathmatch::end();
     143        // Deathmatch::end();
    143144    }
    144145}
  • code/branches/invaders/src/modules/invader/Invader.h

    r9858 r9866  
    7272            void addPoints(int numPoints){point += numPoints * multiplier; b_combo = true;}
    7373            void comboControll();
     74            int lives;
    7475        private:
    7576            WeakPtr<InvaderCenterPoint> center_;
     
    8081            Timer comboTimer;
    8182            //Context* context;
    82             int lives;
    8383            int level;
    8484            int point;
  • code/branches/invaders/src/modules/invader/InvaderEnemy.cc

    r9862 r9866  
    6868    inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    6969    {
    70         // setVelocity(Vector3(1000,0,0));
     70        // setVelocity(Vector3(1500,0,0));
    7171        removeHealth(2000);
    7272        return false;
  • code/branches/invaders/src/modules/invader/InvaderHUDinfo.cc

    r9854 r9866  
    8080            {
    8181                const std::string& points = multi_cast<std::string>(this->InvaderGame->getPoints());
     82                if (this->InvaderGame->lives <= 0)
     83                {
     84                    setTextSize(0.1);
     85                    setPosition(Vector2(0.2, 0.5));
     86                }
    8287                this->setCaption(points);
    8388            }
Note: See TracChangeset for help on using the changeset viewer.