blob: 661c615dbdabbd593c86f9fd6143385909ea9d62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <stdio.h>
#include <raylib.h>
#include "constants.h"
#include "game.h"
#include "player.h"
#include "background.h"
int main() {
SetConfigFlags(FLAG_VSYNC_HINT); //Always better than fixed FPS imo
InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "My BeatEmup");
SetTargetFPS(0);
InitGame();
AddPlayer(0.0, 0.0);
AddWall(200, 100, 10000, 100);
AddWall(200, 400, 10000, 100);
AddBackground("bar-background");
while(!WindowShouldClose()) {
UpdateGame(GetFrameTime());
DrawGame();
}
CloseWindow();
return 0;
}
|