This commit is contained in:
Masashi 2025-12-19 21:07:07 +05:30
commit 0021ce04ac
12 changed files with 134 additions and 15 deletions

View file

@ -29,19 +29,12 @@ int suic_main(void);
int suic_main(void) {
char* GAME_NAME = suic_alloc_array(NULL, sizeof(char), 5, "Soup");
char* GAME_VERSION = suic_alloc_array(NULL, sizeof(char), 6, "0.1.0");
int WINDOW_WIDTH = 1280;
int WINDOW_HEIGHT = 720;
char* WINDOW_TITLE = suic_alloc_array(NULL, sizeof(char), 27, "Soup - Voxel Battle Royale");
char* SERVER_HOST = suic_alloc_array(NULL, sizeof(char), 10, "127.0.0.1");
int SERVER_PORT = 8888;
suic_init_window(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE);
suic_init_window(1280, 720, suic_alloc_array(NULL, sizeof(char), 27, "Soup - Voxel Battle Royale"));
suic_enable_msaa_4x();
int current_screen = 0;
char* player_name = suic_alloc_array(NULL, sizeof(char), 7, "Player");
char* server_host = SERVER_HOST;
int server_port = SERVER_PORT;
char* server_host = suic_alloc_array(NULL, sizeof(char), 10, "127.0.0.1");
int server_port = 8888;
suic_show_fps_meter((suic_vec2){ .x = 10.000000, .y = 10.000000 });
while ((suic_window_should_close() == false)) {
suic_begin_drawing();