Skip to content

Commit

Permalink
enable flip
Browse files Browse the repository at this point in the history
  • Loading branch information
kannoneer committed May 22, 2024
1 parent 3597e76 commit 63112a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/gameloop/gameloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void render()
rdpq_sprite_blit(player_sprite, player.pos.x, player.pos.y, &(rdpq_blitparms_t){
.s0 = player.frame * PLAYER_SPRITE_SIZE,
.width = PLAYER_SPRITE_SIZE,
// .flip_x = player.facing == FACING_LEFT
.flip_x = player.facing == FACING_LEFT
});

rdpq_detach_show();
Expand Down Expand Up @@ -152,6 +152,7 @@ int main()
apple.pos.x = 200;
apple.pos.y = 75;

// Make the first frame have a 33 ms delta.
uint32_t last_ticks = get_ticks() - TICKS_FROM_MS(33);

while (1)
Expand Down

0 comments on commit 63112a5

Please sign in to comment.