更名FINDBOOM为MineSweepe

正式初步完成了MineSweepe
This commit is contained in:
wlx
2025-07-19 15:37:01 +08:00
parent a262e8d508
commit a3b2d6c7c8
30 changed files with 278 additions and 468 deletions

22
include/over.h Normal file
View File

@ -0,0 +1,22 @@
#ifndef WIN_H
#define WIN_H
#include "game.h"
#include <SDL_ttf.h>
typedef struct Font {
TTF_Font * fontKind;
SDL_Texture* texture;
int w, h;
} Font;
typedef struct Button {
int x,y,w,h;
} Button;
typedef struct Over {
int nameH,buttonH,w;
Button botton;
} Over;
void initOver(Game * game, Over * over);
void drawOver(int fontSizeName, int fontSizeButton,Font * font, const char * nameText, Color buttonColor, SDL_Renderer * renderer , Over* over);
#endif //WIN_H