Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2017, 3:32:04 PM (8 years ago)
Author:
pascscha
Message:

Death

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.cc

    r11529 r11537  
    7070            if(getHealth()<0){
    7171                 getGame()->costLife();
    72                  getGame()->end();
     72                 getGame()->death();
     73                 death();
    7374            }
    7475            Vector3 pos = getPosition();
     
    151152    void FlappyOrxShip::death()
    152153    {
    153 
     154        Vector3 pos = getPosition();
     155        pos.x = 0;
     156        setPosition(pos);
    154157    }
    155158}
Note: See TracChangeset for help on using the changeset viewer.