Remplace pollevent() with clearevents()
This commit is contained in:
parent
1461a5e122
commit
37dcda531e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue