diff options
author | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-05-02 00:37:10 +0300 |
---|---|---|
committer | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-05-02 00:37:10 +0300 |
commit | 510a5d76180f30f1dd75a05927bbcb10bfae8da8 (patch) | |
tree | 4395294fd3fe9076169b467b22f34e2fff22a8b9 /sources/main.c | |
parent | aeddacb8d88f41ba7bdf37d39de17d8cf3b6a258 (diff) | |
download | gamejam-slgj-2024-510a5d76180f30f1dd75a05927bbcb10bfae8da8.tar.gz gamejam-slgj-2024-510a5d76180f30f1dd75a05927bbcb10bfae8da8.tar.bz2 gamejam-slgj-2024-510a5d76180f30f1dd75a05927bbcb10bfae8da8.zip |
basic GoL
Diffstat (limited to 'sources/main.c')
-rw-r--r-- | sources/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/main.c b/sources/main.c index b248f24..3c2e1da 100644 --- a/sources/main.c +++ b/sources/main.c @@ -21,12 +21,14 @@ s7_pointer s7_draw_fn; #ifdef __EMSCRIPTEN__ EM_BOOL main_loop_web(double time, void* userData) { + s7_call(s7, s7_update_fn, s7_list(s7, 0)); - + BeginDrawing(); ClearBackground(BLUE); s7_call(s7, s7_draw_fn, s7_list(s7, 0)); EndDrawing(); + PollInputEvents(); // <- this is necessary because of a web specific bug. See https://github.com/raysan5/raylib/issues/2379 return EM_TRUE; } #else |