update 2 more examples

This commit is contained in:
Jon Daniel 2025-08-02 01:32:12 +02:00
commit 6fce935a26

View file

@ -43,6 +43,13 @@ int main(void)
{
// Update
//-----------------------------------------------------
if (IsWindowResized())
{
screenWidth = GetScreenWidth();
screenHeight = GetScreenHeight();
ballPosition.x = screenWidth/2.0f;
ballPosition.y = screenHeight/2.0f;
}
if (IsKeyPressed(KEY_SPACE)) pause = !pause;
if (!pause)