Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12073


Ignore:
Timestamp:
Nov 7, 2018, 10:13:31 AM (5 years ago)
Author:
emustafa
Message:

reverted hover files

Location:
code/branches/OrxoKart_HS18
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoKart_HS18/data/levels/templates/spaceshipHover.oxt

    r12066 r12073  
    1 
    21<Template name=spaceshiphover>
    32  <SpaceShip
     
    1918   reloadwaittime      = 0.5
    2019
    21    primaryThrust     = 600
    22    auxilaryThrust    = 300
    23    rotationThrust    = 50
     20   primaryThrust     = 200
     21   auxilaryThrust    = 30
     22   rotationThrust    = 25
    2423
    25    jumpBoost = 30
     24   jumpBoost = 90
    2625
    2726   lift = 1;
    28    stallSpeed = 500;
     27   stallSpeed = 220;
    2928
    30    boostPower            = 30
     29   boostPower            = 10
    3130   boostPowerRate        = 1
    3231   boostRate             = 5
     
    8079   boostfactor    = 2
    8180
    82    speedfront     = 200
     81   speedfront     = 90
    8382   speedback      =  40
    8483   speedleftright =  40
  • code/branches/OrxoKart_HS18/src/modules/hover/Hover.cc

    r12062 r12073  
    7070            generator.generateMaze();
    7171            generator.renderMaze();
    72             int levelcodeArray[] = {1,1,1,1,1,1,1,1,0,0,0
    73                                     ,1,0,0,0,0,0,0,1,1,1,0
    74                                     ,1,0,1,1,1,1,0,0,0,1,1
    75                                     ,1,1,1,0,0,1,1,0,0,0,1
    76                                     ,0,0,0,0,0,0,1,0,1,1,1
    77                                     ,1,1,1,1,1,1,1,0,1,0,0
    78                                     ,1,0,0,0,0,0,0,0,1,0,0
    79                                     ,1,0,0,0,0,0,0,0,1,0,0
    80                                     ,1,1,1,1,1,0,0,0,1,1,1
    81                                     ,0,0,0,0,1,0,0,0,0,0,1
    82                                     ,0,0,0,0,1,1,1,1,1,1,1};
    83             //int* levelcode = generator.getLevelcode();
    84             int* levelcode = levelcodeArray;
    8572
     73            int* levelcode = generator.getLevelcode();
    8674
    8775            //Outer Walls
     
    9987                        case 1: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1);
    10088                                break;
    101                         //case 3: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1);
    102                         //case 2: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 0);
     89                        case 3: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1);
     90                        case 2: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 0);
    10391                        default: break;
    10492                    }
  • code/branches/OrxoKart_HS18/src/modules/hover/HoverShip.cc

    r12066 r12073  
    4949
    5050    void HoverShip::moveFrontBack(const Vector2& value)
    51         {
    52             this->steering_.z -= value.x;
    53             orxout() << "mFB" << endl;
    54         }
     51        { this->steering_.z -= value.x; }
    5552
    5653    void HoverShip::moveRightLeft(const Vector2& value)
    57         {
    58             this->rotateYaw(value);
    59             orxout() << "mRL" << endl;
    60         }
     54        { this->steering_.x += value.x; }
    6155
    6256    void HoverShip::moveUpDown(const Vector2& value)
    63         {
    64             this->steering_.y += value.x;
    65             orxout() << "mUD" << endl;
    66         }
     57        { this->steering_.y += value.x; }
    6758
    6859    void HoverShip::rotateYaw(const Vector2& value)
    69         {
    70             this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() - value.x);
    71             //orxout() << value;
    72             Pawn::rotateYaw(value);
    73         }
     60    {
     61        this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x);
     62
     63        Pawn::rotateYaw(value);
     64    }
    7465
    7566    void HoverShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
Note: See TracChangeset for help on using the changeset viewer.