Skip to content

Commit

Permalink
Update textures_gif_player.lpr
Browse files Browse the repository at this point in the history
  • Loading branch information
GuvaCode committed Nov 6, 2024
1 parent e6bd593 commit 9921e88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/textures/textures_gif_player/textures_gif_player.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@

FrameCounter := 0;
// Control frames delay
if IsKeyPressed(KEY_RIGHT) then Inc(FrameDelay)
else if IsKeyPressed(KEY_LEFT) then Dec(FrameDelay);


if FrameDelay > MAX_FRAME_DELAY then FrameDelay := MAX_FRAME_DELAY
else if FrameDelay < MIN_FRAME_DELAY then FrameDelay := MIN_FRAME_DELAY;
//----------------------------------------------------------------------------------
end;

if IsKeyPressed(KEY_RIGHT) then Inc(FrameDelay)
else if IsKeyPressed(KEY_LEFT) then Dec(FrameDelay);

// Draw
//----------------------------------------------------------------------------------
BeginDrawing();
Expand Down

0 comments on commit 9921e88

Please sign in to comment.