basic game logic with simple translation animation

This commit is contained in:
2023-12-13 06:58:08 +02:00
parent 7360359a48
commit 9620e12681
44 changed files with 33798 additions and 6 deletions
+20 -5
View File
@@ -1,8 +1,23 @@
#include <stdio.h>
#include "game.h"
#include "zephr.h"
const char *font_path = "assets/fonts/Rubik/Rubik-VariableFont_wght.ttf";
/* const char *font_path = "assets/fonts/Roboto/Roboto-Bold.ttf"; */
const char *title = "C2048";
int main(int argc, char *argv[]) {
// From scratch
// X11 for windowing
// OpenGL for rendering
// OpenAL for audio (maybe)
// Windows support when everything is fine on linux using winapi
CORE_UNUSED(argc);
CORE_UNUSED(argv);
zephr_init(font_path, title, (Size){1200, 800});
zephr_make_window_non_resizable();
/* zephr_toggle_fullscreen(); */
game_loop();
zephr_deinit();
return 0;
}