FLAGS_LINUX = -lGL -lSDL2_image\r
FLAGS_WIN32 = -lopengl32 -lmingw32 -lSDL2_Image\r
-FLAGS = -m32 -Iinclude -Wall -Werror -lSDL2main -lSDL2\r
+FLAGS = -m32 -std=c++11 -Iinclude -Wall -Werror -lSDL2main -lSDL2\r
\r
all:\r
@g++ src/*.cpp -o main $(FLAGS_LINUX) $(FLAGS)\r
for(i=0;i<lineCount-10;i++){ // For every line in world\r
if(v->y<line[i].start){ // If we're inside the line\r
if(v->x>(HLINE*i)-1&&v->x<(HLINE*i)-1+HLINE){ // And we're inside it ;)\r
- vel->y=0;v->y=line[i].start+HLINE; // Correct\r
+ vel->y=0;v->y=line[i].start+HLINE/4; // Correct\r
return; // :/\r
}else if(v->x+width>(HLINE*i)-1&&v->x+width<(HLINE*i)-1+HLINE){ // Same as above, but coming from right side instead of left\r
- vel->y=0;v->y=line[i].start+HLINE;\r
+ vel->y=0;v->y=line[i].start+HLINE/4;\r
return; // ;)\r
}\r
}else if(v->y>line[i].start+HLINE){ // Trashy gravity handling\r