]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
Made better tree layer
authordrumsetmonkey <abelleisle@roadrunner.com>
Tue, 27 Oct 2015 20:22:18 +0000 (16:22 -0400)
committerdrumsetmonkey <abelleisle@roadrunner.com>
Tue, 27 Oct 2015 20:22:18 +0000 (16:22 -0400)
assets/antree.png
main.cpp
src/gameplay.cpp

index c3d9146908ce064a2b4395fe91e489e3f7d3f276..3d6aad49d78a957e2aa8b365c723c56c2f9ef6f1 100644 (file)
Binary files a/assets/antree.png and b/assets/antree.png differ
index 1ca4c45421c6661816441c75157c15a3c0ea6186..03c618f37ff5f4a54d485fb0416e428327f256df 100644 (file)
--- 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);
        
index d1cc69d175c7d0c3d4159bf09c7b1e989741f9fa..99b9ff0f357b783632ccd6e874dae2d55b3e1f62 100644 (file)
@@ -34,7 +34,7 @@ void initEverything(void){
        */
        
        World *test=new World();
-       test->generate(SCREEN_WIDTH/2);
+       test->generate(SCREEN_WIDTH);
        
        /*
         *      Add two layers, a platform, and a hole to the world.