I'm getting this problem where I get this error message;
error: 'ballPosition' undeclared (first use in this function)
This is my code
#include"raylib.h"
int main()
{
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth,screenHeight, "ArcadeGame");
while(!WindowShouldClose())
{
ballPosition = GetMousePosition();
BeginDrawing();
DrawCircleV(ballPosition, 35, DARKBLUE);
ClearBackground(RAYWHITE);
EndDrawing();
}
CloseWindow();
return 0;
}
I tried to look at some examples but it still wont work.