Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F135237
main.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
467 B
Referenced Files
None
Subscribers
None
main.cpp
View Options
//#include <iostream>
#include
"SDL.h"
#include
"Game.h"
int
main
(
int
argc
,
char
*
argv
[])
{
const
int
FPS
=
60
,
frameDelay
=
1000
/
FPS
;
Uint32
frameStart
;
int
frameTime
;
Game
game
(
false
,
1.5
);
while
(
game
.
running
())
{
frameStart
=
SDL_GetTicks
();
game
.
update
();
frameTime
=
SDL_GetTicks
()
-
frameStart
;
if
(
frameDelay
>
frameTime
)
{
SDL_Delay
(
frameDelay
-
frameTime
);
}
}
return
0
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Jun 26, 6:19 AM (3 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
73056
Default Alt Text
main.cpp (467 B)
Attached To
Mode
R74 BloonsTD
Attached
Detach File
Event Timeline