- Timestamp:
- Jun 14, 2004, 1:29:58 PM (20 years ago)
- Location:
- orxonox/trunk/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/environment.cc
r1934 r1942 23 23 using namespace std; 24 24 25 //Sorry Bensch 26 #define LEVEL_LENGTH 500 25 27 26 28 27 Environment::Environment () 29 28 { 30 29 31 //Sorry Bensch: x,y = 10 32 for (int x = 0; x < 50; x++)30 31 for (int x = 0; x < 10; x++) 33 32 { 34 for (int y = 0; y < 50; y++)33 for (int y = 0; y < 10; y++) 35 34 { 36 mountainTest[x][y] = 0;35 mountainTest[x][y] = 0; 37 36 38 37 } 39 38 } 40 //Sorry Bensch: x,y = 9 41 for (int x = 1; x < LEVEL_LENGTH; x++)39 40 for (int x = 1; x < 9; x++) 42 41 { 43 for (int y = 1; y < LEVEL_LENGTH; y++)42 for (int y = 1; y < 9; y++) 44 43 { 45 //mountainTest[x][y] = (float)random() / 900000000;46 mountainTest[x][y] = (float)(random() % 4);44 mountainTest[x][y] = (float)random() / 900000000; 45 47 46 } 48 47 } … … 65 64 66 65 glBegin(GL_LINES); 67 for (int x = 0; x < LEVEL_LENGTH; x += 1)66 for (int x = 0; x < 9; x += 1) 68 67 { 69 for (int y = 0; y < 190; y += 1)68 for (int y = 0; y < 9; y += 1) 70 69 { 71 70 glVertex3f((float)(2*x), (float)(2*y), mountainTest[x][y]); … … 77 76 78 77 glBegin(GL_LINES); 79 for (int y = 0; y < LEVEL_LENGTH; y += 1)78 for (int y = 0; y < 9; y += 1) 80 79 { 81 for (int x = 0; x < 9 0; x += 1)80 for (int x = 0; x < 9; x += 1) 82 81 { 83 82 glVertex3f((float)(2*x), (float)(2*y), mountainTest[x][y]); -
orxonox/trunk/core/shoot_rocket.cc
r1929 r1942 183 183 sh->type = ROTATER; 184 184 sh->xCor = x+radius*sin(rotateAngle); sh->yCor = y; sh->zCor = z+radius*cos(rotateAngle); 185 sh->xVel = .1*cos(rotateAngle) ;186 sh->yVel = 0.4 ;187 sh->zVel = .1*sin(rotateAngle) ;185 sh->xVel = .1*cos(rotateAngle)/step; 186 sh->yVel = 0.4/step; 187 sh->zVel = .1*sin(rotateAngle)/step; 188 188 sh->xAcc = 1.01; sh->yAcc = 1.01/step; sh->zAcc = 1.01; 189 189 sh->next = lastShoot;
Note: See TracChangeset
for help on using the changeset viewer.