summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
blob: 6b7a25156f7af791914880bc8d0683d9c5e2fbbd (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
30
31
32
33
#include "raylib.h"

#ifdef PLATFORM_WEB
#include <emscripten/emscripten.h>
#endif


void Loop();


int main()
{
    InitWindow(800, 600, "bullethell2022");
#ifdef PLATFORM_WEB
    emscripten_set_main_loop(Loop, 0, 1);
#else
    SetTargetFPS(60);
    while (!WindowShouldClose())
    {
        Loop();
    }
#endif  // PLATFORM_WEB
    CloseWindow();
}


void Loop()
{
    BeginDrawing();
    ClearBackground(RAYWHITE);
    DrawText("bullethell2022", 190, 200, 20, LIGHTGRAY);
    EndDrawing();
}