#define goWorldLeft(w) if(w->toLeft){w=w->toLeft;}\r
#define goWorldRight(w) if(w->toRight){w=w->toRight;}\r
\r
-#define LAYER_SCALE 1\r
+#define LAYER_SCALE 2\r
\r
class World {\r
private:\r
double start; // Where to change to dirt, going down (y)\r
} __attribute__ ((packed)) *line;\r
unsigned int lineCount;\r
- bool root;\r
+ bool root,drawn;\r
public:\r
World *behind,*infront;\r
World *toLeft,*toRight;\r
w=new World(2,NULL,w2);
currentWorld=w;
- currentWorld->addLayer();
currentWorld->setRoot();
+ currentWorld->addLayer();
+ //currentWorld->addLayer();
+ //currentWorld->addLayer();
// Save the world if necessary
/*FILE *f=fopen("world.dat","r");
**** RENDER STUFF HERE ****
**************************/
- currentWorld->draw();
+ currentWorld->draw(); // layers dont scale x correctly...
glColor3ub(120,30,30);
glRectf(player.loci.x, player.loci.y, player.loci.x + player.width, player.loci.y + player.height);