From 7fb04cdd40ee8977e86b8d5c670a4c6488616737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 27 Dec 2022 22:18:32 +0100 Subject: [PATCH] Pygame --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()