2023-12-24 18:46:21 +01:00
|
|
|
#include "screen.h"
|
|
|
|
|
2023-12-24 18:53:13 +01:00
|
|
|
void ScreenInit(int width, int height){
|
|
|
|
InitWindow(width, height, "Chip-8 Emulator");
|
2023-12-24 18:46:21 +01:00
|
|
|
SetTargetFPS(60); // Set game to run at 60 frames-per-second
|
|
|
|
}
|
|
|
|
|
|
|
|
void ScreenUpdate(){
|
|
|
|
BeginDrawing();
|
|
|
|
ClearBackground(RAYWHITE);
|
|
|
|
DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
|
|
|
|
EndDrawing();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ScreenFinish(){
|
|
|
|
CloseWindow(); // Close window and OpenGL context
|
|
|
|
}
|
|
|
|
|
|
|
|
|