Changeset 11914 for code/branches/OrxyRoad_FS18/src
- Timestamp:
- Apr 26, 2018, 4:06:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxyRoad_FS18/src/modules/orxyroad/OrxyRoad.cc
r11899 r11914 55 55 b_combo = false; 56 56 counter = 5000; 57 pattern = 1;57 pattern = 3; 58 58 lastPosition = 0; 59 59 // spawn enemy every 3.5 seconds … … 112 112 { 113 113 counter = 0; 114 for(int i = 0; i<6; i++)114 for(int j = 0; j < 3; j++) 115 115 { 116 OrxyRoadCube* cube = new OrxyRoadCube(this->center_->getContext()); 117 cubeList.push_back(cube); 118 switch(pattern) 116 for(int i = -30; i<30; i++) 119 117 { 120 case 1: cube->addTemplate("OrxyRoadCube01"); 121 break; 122 case 2: cube->addTemplate("OrxyRoadCube01"); 123 break; 124 118 OrxyRoadCube* cube = new OrxyRoadCube(this->center_->getContext()); 119 cubeList.push_back(cube); 120 switch(pattern) 121 { 122 case 1: cube->addTemplate("OrxyRoadCube01"); 123 break; 124 case 2: cube->addTemplate("OrxyRoadCube01"); 125 break; 126 case 3: cube->addTemplate("SingleOrxyRoadCube"); 127 128 } 129 130 cube->setPosition(player->getWorldPosition() + Vector3(1000.0f+j*800.0f, 0.0f, i*600.0f+j*300)); 131 132 /* experimental */ 133 134 cube->setVelocity(0,0,500); 135 136 /* experimental */ 137 138 139 //stEntity->setScale3D(50,50,50); 125 140 } 126 127 cube->setPosition(player->getWorldPosition() + Vector3(5000.0f, 0.0f, -3600.0f + (i*1200)));128 129 /* experimental */130 131 //cube->setVelocity(10,0,0);132 133 /* experimental */134 135 136 //stEntity->setScale3D(50,50,50);137 141 } 138 142 139 143 140 pattern %= 2;141 pattern ++;144 //pattern %= 2; 145 //pattern ++; 142 146 143 147 }
Note: See TracChangeset
for help on using the changeset viewer.