update 2 more examples
This commit is contained in:
parent
b16313a2d3
commit
6fce935a26
1 changed files with 10 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue