Minor changes

This commit is contained in:
Loïc Guégan 2023-12-25 16:05:55 +01:00
parent 9550924042
commit 07c7e35bff
3 changed files with 3 additions and 2 deletions

View file

@ -23,7 +23,7 @@ int main(int argc, char *argv[])
while (!WindowShouldClose()){ while (!WindowShouldClose()){
VCPUFetch(); VCPUFetch();
VCPUDecode(); VCPUDecode();
VCPUExecute(); VCPUExecute();
ScreenUpdate(); ScreenUpdate();
} }

View file

@ -15,7 +15,7 @@ void ScreenInit(int width, int height){
SetTraceLogLevel(LOG_ERROR); // Disable anoying raylib logs SetTraceLogLevel(LOG_ERROR); // Disable anoying raylib logs
InitWindow(width, height, "Chip-8 Emulator"); InitWindow(width, height, "Chip-8 Emulator");
SetTargetFPS(200); // Set game to run at 60 frames-per-second SetTargetFPS(30); // Set game to run at 60 frames-per-second
} }
void ScreenClear() { void ScreenClear() {

View file

@ -16,6 +16,7 @@ typedef struct SCREEN_DATA {
void ScreenInit(int width, int height); void ScreenInit(int width, int height);
void ScreenClear(); void ScreenClear();
char ScreenPixelApply(int x, int y, unsigned char state); char ScreenPixelApply(int x, int y, unsigned char state);
void ScreenPixelFlip(int x, int y);
void ScreenWH(int *width, int *height); void ScreenWH(int *width, int *height);
void ScreenUpdate(); void ScreenUpdate();
void ScreenClose(); void ScreenClose();