Changeset 1934 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 9, 2004, 7:52:08 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/core/environment.cc
r1917 r1934 23 23 using namespace std; 24 24 25 25 //Sorry Bensch 26 #define LEVEL_LENGTH 500 26 27 27 28 Environment::Environment () 28 29 { 29 30 30 31 for (int x = 0; x < 10; x++)31 //Sorry Bensch: x,y = 10 32 for (int x = 0; x < 50; x++) 32 33 { 33 for (int y = 0; y < 10; y++)34 for (int y = 0; y < 50; y++) 34 35 { 35 mountainTest[x][y] = 36 mountainTest[x][y] =0; 36 37 37 38 } 38 39 } 39 40 for (int x = 1; x < 9; x++)40 //Sorry Bensch: x,y = 9 41 for (int x = 1; x < LEVEL_LENGTH; x++) 41 42 { 42 for (int y = 1; y < 9; y++)43 for (int y = 1; y < LEVEL_LENGTH; y++) 43 44 { 44 mountainTest[x][y] = (float)random() / 900000000;45 45 //mountainTest[x][y] = (float)random() / 900000000; 46 mountainTest[x][y] = (float)(random() % 4); 46 47 } 47 48 } … … 64 65 65 66 glBegin(GL_LINES); 66 for (int x = 0; x < 9; x += 1)67 for (int x = 0; x < LEVEL_LENGTH; x += 1) 67 68 { 68 for (int y = 0; y < 9; y += 1)69 for (int y = 0; y < 190; y += 1) 69 70 { 70 71 glVertex3f((float)(2*x), (float)(2*y), mountainTest[x][y]); … … 76 77 77 78 glBegin(GL_LINES); 78 for (int y = 0; y < 9; y += 1)79 for (int y = 0; y < LEVEL_LENGTH; y += 1) 79 80 { 80 for (int x = 0; x < 9 ; x += 1)81 for (int x = 0; x < 90; x += 1) 81 82 { 82 83 glVertex3f((float)(2*x), (float)(2*y), mountainTest[x][y]);
Note: See TracChangeset
for help on using the changeset viewer.