initial template changes, xmake integration

This commit is contained in:
programsnail 2024-07-20 22:43:52 +03:00
parent a1430a42aa
commit b4a4ffc08a
7 changed files with 27 additions and 17 deletions

View file

@ -1,40 +0,0 @@
#pragma once
//
// DO NOT MODIFY THIS FILE
//
#include <stdint.h>
#define SCREEN_WIDTH 1024
#define SCREEN_HEIGHT 768
// backbuffer
extern uint32_t buffer[SCREEN_HEIGHT][SCREEN_WIDTH];
enum
{
VK_ESCAPE,
VK_SPACE,
VK_LEFT,
VK_UP,
VK_RIGHT,
VK_DOWN,
VK_RETURN,
VK__COUNT
};
// VK_SPACE, VK_RIGHT, VK_LEFT, VK_UP, VK_DOWN, etc.
bool is_key_pressed(int button_vk_code);
bool is_mouse_button_pressed(int mouse_button);
int get_cursor_x();
int get_cursor_y();
void initialize();
void finalize();
void act(float dt);
void draw();
void schedule_quit_game();