aboutsummaryrefslogtreecommitdiff
path: root/source/all.h
diff options
context:
space:
mode:
authorEmil Williams2026-02-15 02:44:29 +0000
committerEmil Williams2026-02-15 02:44:29 +0000
commit97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03 (patch)
treea012960ad45eba54f512da2337440a448f72a2f0 /source/all.h
parentdc655ac2079e0eea55c56b6712bf6a2167b57845 (diff)
downloadMonobomberman-97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03.tar.xz
Monobomberman-97ddf26c3d83a9ae2a99a3d6d2884a3ebecd3e03.tar.zst
config_t 2, bomb minus bugs
Diffstat (limited to 'source/all.h')
-rw-r--r--source/all.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/source/all.h b/source/all.h
index 93ea881..d1f2761 100644
--- a/source/all.h
+++ b/source/all.h
@@ -19,8 +19,6 @@
(void) 0
/* ... */
#define StepStop(prefix) \
- prefix##s_per_second++; \
- prefix##_total++; \
prefix##_last = timespec_add(prefix##_last, prefix##_interval); \
if (timespec_cmp(prefix##_last, now) < 0) { \
prefix##_last = now; \
@@ -178,13 +176,16 @@ typedef struct {
Rectangle enemy[4];
} enemies_t;
+#define CONFIG_STRING_LIMIT 128
typedef struct {
u16 resolution_x, resolution_y;
u8 fps, ups;
- char font[128];
- char spritesheet[128];
+ char font[CONFIG_STRING_LIMIT];
+ char spritesheet[CONFIG_STRING_LIMIT];
+ char window_name[CONFIG_STRING_LIMIT];
u16 spritesheet_scale;
/* --- */
+ u8 player_count;
u8 map_x, map_y;
} config_t;
@@ -205,13 +206,13 @@ typedef struct {
/* game.c */
-void GameStart(char * program_name);
+void GameStart(config_t config);
void GameResize(game_t * game);
+void GameReinitialize(game_t * game);
/* gamemode.c */
-void MultiPlayer(game_t * game, u16 width, u16 height, u8 player_count);
-void SinglePlayer(game_t * game, u16 width, u16 height);
+void MultiPlayer(game_t * game);
/* update.c */