Remplace pollevent() with clearevents()

This commit is contained in:
Masséna Fezard | Nounouille 2021-03-07 16:17:29 +01:00
parent 1461a5e122
commit 37dcda531e
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ int main(void)
drect(player_x, player_y, player_x + 16, player_y + 16, C_GREEN);
dupdate();
pollevent();
clearevents();
// trying to move the player >w<
player_x += keydown(KEY_RIGHT) - keydown(KEY_LEFT);