diff --git a/src/main.c b/src/main.c index e5a1b3a..2730fd1 100644 --- a/src/main.c +++ b/src/main.c @@ -4,7 +4,7 @@ int main(int argc, char *argv[]) { - ScreenInit(); + ScreenInit(800,400); while (!WindowShouldClose()){ ScreenUpdate(); diff --git a/src/screen.c b/src/screen.c index fd9ebb2..61828b1 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1,9 +1,7 @@ #include "screen.h" -void ScreenInit(){ - const int screenWidth = 800; - const int screenHeight = 450; - InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window"); +void ScreenInit(int width, int height){ + InitWindow(width, height, "Chip-8 Emulator"); SetTargetFPS(60); // Set game to run at 60 frames-per-second } diff --git a/src/screen.h b/src/screen.h index 8df26db..0ea74d1 100644 --- a/src/screen.h +++ b/src/screen.h @@ -1,5 +1,8 @@ #include "raylib.h" -void ScreenInit(); +#define MODE_CHIP8 0 // Chip-8 +#define MODE_SCHIP 1 // Super-Chip + +void ScreenInit(int width, int height); void ScreenUpdate(); void ScreenFinish();