48 lines
766 B
C
48 lines
766 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <sys/types.h>
|
|
#include <netdb.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/time.h>
|
|
#include <signal.h>
|
|
#include <fcntl.h>
|
|
#include <stdarg.h>
|
|
|
|
#include "bomber.h"
|
|
#include "gfx.h"
|
|
#include "announce.h"
|
|
#include "sound.h"
|
|
#include "menu.h"
|
|
#include "utils.h"
|
|
#include "network.h"
|
|
#include "game.h"
|
|
#include "draw.h"
|
|
|
|
int main(int argc,char **argv) {
|
|
char *p;
|
|
|
|
strcpy(playername,"ANONYMOUS");
|
|
p=getenv("USER");
|
|
if(p) strncpy(playername,p,sizeof(playername));
|
|
|
|
create_seed_unique();
|
|
|
|
opengfx(argc, argv);
|
|
getsocket();
|
|
if (!initannouncer()) exit(1);
|
|
|
|
soundopen();
|
|
loadgfx();
|
|
|
|
pulseon();
|
|
mainloop();
|
|
|
|
soundclose();
|
|
freeannouncer();
|
|
freesocket();
|
|
closegfx();
|
|
return 0;
|
|
}
|