summaryrefslogtreecommitdiff
path: root/src/main.c
blob: 317b51ccd401f841f3bbaf441e3cf4d5741754fe (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
#include <stdio.h>
#include <raylib.h>
#include "constants.h"
#include "game.h"
#include "background.h"
#include "player.h"

int main() {
    InitWindow(WINDOW_WIDTH, WINDOW_HEIGHT, "My BeatEmup");
    SetTargetFPS(60);

    LoadAssets();
    InitGame();

    AddBackground("bar-background");
    AddPlayer(0, 0);
    AddWall(100, 100, 1000, 100);

    while(!WindowShouldClose()) {
        UpdateGame(GetFrameTime());

        DrawGame();
    }

    UnloadAssets();
    CloseWindow();
    return 0;
}