Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2019, 11:00:57 AM (5 years ago)
Author:
ahuwyler
Message:

We have a spaceship!

File:
1 edited

Legend:

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

    r12337 r12367  
    3434
    3535#include "OrxoBloxShip.h"
     36#include "OrxoBlox.h"
    3637#include "core/CoreIncludes.h"
    3738
     
    4748        this->width = 120;
    4849        this->height = 100;
    49         orxout() << "Spawned" << std::endl;
     50        orxout() << "SPACESHIP Spawned" << std::endl;
    5051
    5152        //timer.setTimer(3.5f, true, createExecutor(createFunctor(&OrxoBloxShip::showorientation, this)));
     
    7172        Vector3 pos = this->getPosition();
    7273
    73         //ensure that the ship stays in playing field
    74         if(pos.x > width/2)   pos.x = -width/2;
    75         if(pos.x < -width/2)  pos.x = width/2;
    76 
    77         //2D movement, position should always = 0 on y-axis
    78         if(pos.y!=0) pos.y = 0;
    79         this->setPosition(pos);
    80         if(pos.z!=50) pos.z = 50;
    8174    }
    8275
     
    9790    }
    9891}
     92
Note: See TracChangeset for help on using the changeset viewer.