diff options
author | quou <quou@disroot.org> | 2024-10-05 12:22:00 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-05 12:22:00 +1000 |
commit | 66e1d8ff03e2df73d9690f5702633cb6934a3052 (patch) | |
tree | 6f949ca50435f7fc2a756c7127e0186c5f3aaedd /1bitjam.c | |
parent | 0e75a2949678cb8a68fb0819355864aa6db2cb43 (diff) |
give the game a name
Diffstat (limited to '1bitjam.c')
-rw-r--r-- | 1bitjam.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/1bitjam.c b/1bitjam.c deleted file mode 100644 index 1b903c1..0000000 --- a/1bitjam.c +++ /dev/null @@ -1,45 +0,0 @@ -#include "asset.h" -#include "config.h" -#include "game.h" -#include "maths.h" -#include "memory.h" -#include "plat.h" -#include "render.h" - -int entrypoint(int argc, const char** argv, Arena* m) { - Heap h; - App* a; - FPS f; - Renderer r; - Game* game; - (void)argc; - (void)argv; - init_maths(); - init_heap( - &h, - arena_alloc(m, app_memory_size), - app_memory_size - ); - a = new_app(&h, game_name); - init_audio(); - init_fps(&f, default_mpf); - game = arena_alloc(m, sizeof *game); - init_game(game, game_state_menu); - while (a->o) { - fps_begin(&f); - while (f.now >= f.next && a->o) { - app_begin(a); - update_game(game, a); - ren_begin(&r, a->fb, viewport_w, viewport_h); - ren_clear(&r); - ren_game(game, &r); - ren_end(&r); - app_end(a); - fps_update(&f); - } - fps_end(&f); - } - deinit_audio(); - deinit_app(a); - return error_none; -} |