Changeset 12073 for code/branches/OrxoKart_HS18/src/modules/hover
- Timestamp:
- Nov 7, 2018, 10:13:31 AM (6 years ago)
- Location:
- code/branches/OrxoKart_HS18/src/modules/hover
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.