Changeset 12211 for code/branches/Boxhead_FS19/src/modules/hover/Hover.cc
- Timestamp:
- Mar 14, 2019, 4:03:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Boxhead_FS19/src/modules/hover/Hover.cc
r11495 r12211 82 82 83 83 //Generate inner Walls according to levelcode 84 for(int y=0; y<numCells; y++){85 for(int x=0; x<numCells; x++){86 switch(levelcode[ y * numCells + x ]){87 case 1: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1);88 break;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);91 default: break;92 }93 }94 }84 // for(int y=0; y<numCells; y++){ 85 // for(int x=0; x<numCells; x++){ 86 // switch(levelcode[ y * numCells + x ]){ 87 // case 1: (new HoverWall(origin_->getContext()))->init(x+1, numCells-y, cellSize, cellHeight, 1); 88 // break; 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); 91 // default: break; 92 // } 93 // } 94 // } 95 95 96 96 //Generate 5 flags randomly
Note: See TracChangeset
for help on using the changeset viewer.