repo.or.cz
/
sdlbotor.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Screenshots with F9.
[sdlbotor.git]
/
main.cpp
blob
75401852eaa69d390258184f7a100912437943ce
1
#include <cstdlib>
2
#include <cstdio>
3
#include <time.h>
4
#include
"Game.h"
5
#include
"luafuncs.h"
6
7
botor
::
Game game
;
8
9
void
init
()
10
{
11
if
(
SDL_Init
(
SDL_INIT_VIDEO
) <
0
)
12
{
13
printf
(
"Unable to init SDL: %s
\n
"
,
SDL_GetError
() );
14
exit
(
1
);
15
}
16
17
atexit
(
SDL_Quit
);
18
19
20
SDL_WM_SetCaption
(
"botor"
,
"SDLBotor"
);
21
22
srand
(
time
(
0
));
23
24
}
25
26
27
int
main
(
int
argc
,
char
**
argv
)
28
{
29
30
init
();
31
32
game
.
run
();
33
34
return
0
;
35
}