*
*/
-static GLuint bgImage;
-static GLuint bgFar;
+static GLuint bgImage, bgTreesFirst;
/*
* gameRunning
*/
bgImage=Texture::loadTexture("assets/bg.png");
- bgFar = Texture::loadTexture("assets/bgfarMountains.png");
+ bgTreesFirst = Texture::loadTexture("assets/antree.png");
/*
* Load sprites used in the inventory menu. See src/inventory.cpp
glTexCoord2i(0,0);glVertex2i(-SCREEN_WIDTH*2,SCREEN_HEIGHT);
glEnd();
- glBindTexture(GL_TEXTURE_2D, bgFar);
- glColor4ub(255,255,255,155);
+ glBindTexture(GL_TEXTURE_2D, bgTreesFirst);
+ glColor4ub(255,255,255,200);
glBegin(GL_QUADS);
- glTexCoord2i(0,1);glVertex2i(-SCREEN_WIDTH,0);
- glTexCoord2i(1,1);glVertex2i( SCREEN_WIDTH,0);
- glTexCoord2i(1,0);glVertex2i( SCREEN_WIDTH,391);
- glTexCoord2i(0,0);glVertex2i(-SCREEN_WIDTH,391);
+ glTexCoord2i(0,1);glVertex2i(0 +player->loc.x*.25, 100);
+ glTexCoord2i(1,1);glVertex2i(7680 +player->loc.x*.25, 100);
+ glTexCoord2i(1,0);glVertex2i(7680 +player->loc.x*.25, 2260);
+ glTexCoord2i(0,0);glVertex2i(0 +player->loc.x*.25, 2260);
glEnd();
glDisable(GL_TEXTURE_2D);