repo.or.cz
/
h2d.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
completely changed event_queue logic
[h2d.git]
/
main.c
blob
0067b10e87c09d65319be883a6208910320a29ee
1
2
#include <stdbool.h>
3
#include <stdio.h>
4
#include <stdarg.h>
5
#include <stdlib.h>
6
#include <math.h>
7
#include <time.h>
8
9
#include
"SDL/SDL.h"
10
#include
"SDL/SDL_image.h"
11
#include
"SDL/SDL_ttf.h"
12
13
#include
"list.c"
14
#include
"structs.c"
15
#include
"globals.c"
16
#include
"accessory.c"
17
#include
"path.c"
18
#include
"logic.c"
19
#include
"events.c"
20
#include
"draw.c"
21
#include
"init.c"
22
23
24
void
mainloop
(){
25
while
(!
done
){
26
events
();
27
logic
();
28
draw
();
29
SDL_Delay
(
1.0
*
33
);
30
}
31
}
32
33
34
void
args
(
int
ac
,
char
**
av
){
35
if
(
ac
!=
1
||
av
==
NULL
)
36
exit
(
EXIT_FAILURE
);
37
}
38
39
40
41
#undef main
42
int
main
(
int
ac
,
char
**
av
){
43
args
(
ac
,
av
);
44
init
();
45
mainloop
();
46
return
(
EXIT_SUCCESS
);
47
}
48