Files
findboom/include/game.h
wlx a3b2d6c7c8 更名FINDBOOM为MineSweepe
正式初步完成了MineSweepe
2025-07-19 15:37:01 +08:00

32 lines
629 B
C

#ifndef RUNNING_H
#define RUNNING_H
#include "SDL_render.h"
#include "SDL_video.h"
typedef struct Window {
int width, height;
SDL_Window *window;
SDL_Renderer *renderer;
} Window;
typedef struct Game {
const char* title;
Window window;
} Game;
typedef struct Color {
int r,g,b,a;
} Color;
#define SQUARE (Color){0xC0,0XC0,0XC0,255}
#define BACKGROUND (Color){0x24,0x49,0X5E,255}
#define BUTTON (Color){0X2c,0X3E,0X50,255}
#define FLOW (Color){0xD9,0xD9,0xD9}
void initGame(const char* name, int width, int height);
void gameLoop();
void setColor(Color color);
void windowClose();
#endif //RUNNING_H