aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2015-10-27 16:22:18 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2015-10-27 16:22:18 -0400
commite32f533207c0ded45441d8c32e96247ff7119eac (patch)
tree118a7ce3d9123695b53e9164432f423f57acffc5 /main.cpp
parentdb699c0140946cef99d1636b05f3a8492f86c739 (diff)
Made better tree layer
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 1ca4c45..03c618f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -556,12 +556,12 @@ void render(){
glEnd();
glBindTexture(GL_TEXTURE_2D, bgTreesFirst);
- glColor4ub(255,255,255,200);
+ glColor4ub(255,255,255,255);
glBegin(GL_QUADS);
- 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);
+ glTexCoord2i(0,1);glVertex2i(-960 +player->loc.x*.25, 50);
+ glTexCoord2i(1,1);glVertex2i(960 +player->loc.x*.25, 50);
+ glTexCoord2i(1,0);glVertex2i(960 +player->loc.x*.25, 1130);
+ glTexCoord2i(0,0);glVertex2i(-960 +player->loc.x*.25, 1130);
glEnd();
glDisable(GL_TEXTURE_2D);