This commit is contained in:
2026-01-04 19:42:22 +08:00
parent 888b0c368c
commit 4dadeb807d
9 changed files with 279 additions and 148 deletions

25
src/game.h Normal file
View File

@ -0,0 +1,25 @@
#ifndef GAME_H
#define GAME_H
#include <SDL.h>
#define FPS 60
#define FRAME_DELAY (1000 / FPS) // Milliseconds per frame
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
typedef struct {
char *spaceshipPath;
char *backgroundPath;
char *bulletPath;
} AssetPaths;
typedef struct {
SDL_Texture *bulletTexture;
SDL_Texture *playerTexture;
SDL_Texture *backgroundTexture;
} Textures;
extern Textures textures;
#endif /* GAME_H */