diff --git a/README.md b/README.md index 169e158..d2d4c60 100644 --- a/README.md +++ b/README.md @@ -2972,7 +2972,7 @@ rect = pg.Rect(240, 240, 20, 20) while not pg.event.get(pg.QUIT): deltas = {pg.K_UP: (0, -20), pg.K_RIGHT: (20, 0), pg.K_DOWN: (0, 20), pg.K_LEFT: (-20, 0)} for event in pg.event.get(pg.KEYDOWN): - rect.move_ip(deltas.get(event.key, (0, 0)) + rect.move_ip(deltas.get(event.key, (0, 0))) screen.fill((0, 0, 0)) pg.draw.rect(screen, (255, 255, 255), rect) pg.display.flip() diff --git a/index.html b/index.html index 470173c..3584737 100644 --- a/index.html +++ b/index.html @@ -2427,7 +2427,7 @@ rect = pg.Rect(240, 2 while not pg.event.get(pg.QUIT): deltas = {pg.K_UP: (0, -20), pg.K_RIGHT: (20, 0), pg.K_DOWN: (0, 20), pg.K_LEFT: (-20, 0)} for event in pg.event.get(pg.KEYDOWN): - rect.move_ip(deltas.get(event.key, (0, 0)) + rect.move_ip(deltas.get(event.key, (0, 0))) screen.fill((0, 0, 0)) pg.draw.rect(screen, (255, 255, 255), rect) pg.display.flip()