Changeset 12073
- Timestamp:
- Nov 7, 2018, 10:13:31 AM (6 years ago)
- Location:
- code/branches/OrxoKart_HS18
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoKart_HS18/data/levels/templates/spaceshipHover.oxt
r12066 r12073 1 2 1 <Template name=spaceshiphover> 3 2 <SpaceShip … … 19 18 reloadwaittime = 0.5 20 19 21 primaryThrust = 60022 auxilaryThrust = 30 023 rotationThrust = 5020 primaryThrust = 200 21 auxilaryThrust = 30 22 rotationThrust = 25 24 23 25 jumpBoost = 3024 jumpBoost = 90 26 25 27 26 lift = 1; 28 stallSpeed = 500;27 stallSpeed = 220; 29 28 30 boostPower = 3029 boostPower = 10 31 30 boostPowerRate = 1 32 31 boostRate = 5 … … 80 79 boostfactor = 2 81 80 82 speedfront = 20081 speedfront = 90 83 82 speedback = 40 84 83 speedleftright = 40 -
code/branches/OrxoKart_HS18/src/modules/hover/Hover.cc
r12062 r12073 70 70 generator.generateMaze(); 71 71 generator.renderMaze(); 72 int levelcodeArray[] = {1,1,1,1,1,1,1,1,0,0,073 ,1,0,0,0,0,0,0,1,1,1,074 ,1,0,1,1,1,1,0,0,0,1,175 ,1,1,1,0,0,1,1,0,0,0,176 ,0,0,0,0,0,0,1,0,1,1,177 ,1,1,1,1,1,1,1,0,1,0,078 ,1,0,0,0,0,0,0,0,1,0,079 ,1,0,0,0,0,0,0,0,1,0,080 ,1,1,1,1,1,0,0,0,1,1,181 ,0,0,0,0,1,0,0,0,0,0,182 ,0,0,0,0,1,1,1,1,1,1,1};83 //int* levelcode = generator.getLevelcode();84 int* levelcode = levelcodeArray;85 72 73 int* levelcode = generator.getLevelcode(); 86 74 87 75 //Outer Walls … … 99 87 case 1: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1); 100 88 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); 103 91 default: break; 104 92 } -
code/branches/OrxoKart_HS18/src/modules/hover/HoverShip.cc
r12066 r12073 49 49 50 50 void HoverShip::moveFrontBack(const Vector2& value) 51 { 52 this->steering_.z -= value.x; 53 orxout() << "mFB" << endl; 54 } 51 { this->steering_.z -= value.x; } 55 52 56 53 void HoverShip::moveRightLeft(const Vector2& value) 57 { 58 this->rotateYaw(value); 59 orxout() << "mRL" << endl; 60 } 54 { this->steering_.x += value.x; } 61 55 62 56 void HoverShip::moveUpDown(const Vector2& value) 63 { 64 this->steering_.y += value.x; 65 orxout() << "mUD" << endl; 66 } 57 { this->steering_.y += value.x; } 67 58 68 59 void HoverShip::rotateYaw(const Vector2& value) 69 70 this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() -value.x);71 //orxout() << value; 72 73 60 { 61 this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x); 62 63 Pawn::rotateYaw(value); 64 } 74 65 75 66 void HoverShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
Note: See TracChangeset
for help on using the changeset viewer.