@rm -f out64/*.o\r
@cd src; $(MAKE) $(MFLAGS64)\r
@echo " CXX main.cpp"\r
- @g++ $(FLAGS) -m64 -o main main.cpp out64/*.o $(LIBS)\r
+ @g++ $(FLAGS) -m64 -o main main.cpp out64/*.o $(LIBS) -lX11\r
\r
win32:\r
@g++ $(FLAGS) -o main main.cpp src/*.cpp $(WIN_LIBS)\r
* MAIN ************************************************************************
*******************************************************************************/
+#include <X11/Xlib.h>
+
int main(/*int argc, char *argv[]*/){
//*argv = (char *)argc;
gameRunning=false;
+
+ XInitThreads();
+
/*!
* (Attempt to) Initialize SDL libraries so that we can use SDL facilities and eventually
* make openGL calls. Exit if there was an error.
#include <entities.h>
#include <ui.h>
+#include <unistd.h>
+
extern FILE* names;
extern unsigned int loops;
case MS_TRIGGER:
if(player->loc.x + player->width / 2 > loc.x &&
player->loc.x + player->width / 2 < loc.x + width ){
- hey(this);
+ //if(!vfork()){
+ hey(this);
+ /*_exit(0);
+ }*/
+
}
break;
case MS_DOOR:
*/
void worldSpawnHill1_hillBlock(Mob *callee){
+ std::cout<<"oi";
player->vel.x = 0;
player->loc.x = callee->loc.x + callee->width;
ui::dialogBox(player->name,NULL,false,"This hill seems to steep to climb up...");
glVertex2f(x+1+SCREEN_WIDTH-HLINE*16,y+1);
glVertex2f(x+1+SCREEN_WIDTH-HLINE*16,y-1-SCREEN_HEIGHT/4);
glVertex2f(x-1 ,y-1-SCREEN_HEIGHT/4);
- glVertex2f(x-1 ,y+2);
+ glVertex2f(x ,y+1);
glEnd();
glColor3ub(0,0,0);