commit 59f97f78c221e1644e2a2fd0abfe9b609ad9e428
parent 7542aee3217c54c3a090656fb06bd26652930dc9
Author: Henry Unite <unitehenry@gmail.com>
Date: Sat, 18 Apr 2026 05:17:10 +0000
refactor: title property
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/game.c b/src/game.c
@@ -5,6 +5,7 @@
#define MainLoop emscripten_set_main_loop
/* Properties */
+static const char *title = "rayflap";
static const int screenWidth = 288;
static const int screenHeight = 512;
@@ -51,8 +52,6 @@ void draw(void) {
}
int main() {
- static const char *title = "rayflap";
-
InitWindow(screenWidth, screenHeight, title);
MainLoop(draw, 60, 1);