}\r
}\r
}\r
+extern World *spawn;\r
void World::detect(vec2 *v,vec2 *vel,const float width){\r
unsigned int i;\r
for(i=0;i<lineCount-10;i++){ // For every line in world\r
}\r
}\r
if(v->y>line[i].start+HLINE){ // Trashy gravity handling\r
- vel->y-=.0000001;\r
+ vel->y-=this==spawn?.0000001:.0000003;\r
}\r
}\r
}\r
UIClass ui; //Yep
World *currentWorld;//u-huh
+World *spawn;
+
void logic();
void render();
w2=new World(4,w,NULL);
w=new World(10,NULL,w2);
- currentWorld=w;
+ spawn=currentWorld=w;
currentWorld->addLayer(3);
currentWorld->addLayer(4);
// shh