2023-12-13 06:58:08 +02:00
|
|
|
#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"; */
|
2023-12-17 03:52:35 +02:00
|
|
|
const char *game_icon_path = "assets/icon-128x128.png";
|
2023-12-13 06:58:08 +02:00
|
|
|
const char *title = "C2048";
|
|
|
|
|
|
2023-09-02 00:06:08 +03:00
|
|
|
int main(int argc, char *argv[]) {
|
2023-12-13 06:58:08 +02:00
|
|
|
CORE_UNUSED(argc);
|
|
|
|
|
CORE_UNUSED(argv);
|
|
|
|
|
|
2023-12-17 03:52:35 +02:00
|
|
|
zephr_init(font_path, game_icon_path, title, (Size){1200, 800});
|
2023-12-13 06:58:08 +02:00
|
|
|
zephr_make_window_non_resizable();
|
|
|
|
|
/* zephr_toggle_fullscreen(); */
|
|
|
|
|
|
|
|
|
|
game_loop();
|
|
|
|
|
|
|
|
|
|
zephr_deinit();
|
|
|
|
|
|
2023-09-02 00:06:08 +03:00
|
|
|
return 0;
|
|
|
|
|
}
|