From 8123f1726e0a54999fbae8ec95376125a41858b5 Mon Sep 17 00:00:00 2001 From: eugenep Date: Sat, 10 Apr 2021 23:26:13 +0200 Subject: [PATCH] misc changes --- main.py | 5 +++++ sprites.py | 1 + 2 files changed, 6 insertions(+) diff --git a/main.py b/main.py index da404e0..0c0642e 100644 --- a/main.py +++ b/main.py @@ -94,27 +94,32 @@ class Game: for i in self.player.moves: if i == 'Right': self.player.move(dx=1, direction='Right') + #pg.time.delay(250) if i == 'Turn Right': self.player.move(0, 0, direction='Right') if i == 'Left': self.player.move(dx=-1, direction='Left') + #pg.time.delay(250) if i == 'Turn Left': self.player.move(0, 0, direction='Left') if i == 'Down': self.player.move(dy=1, direction='Down') + #pg.time.delay(250) if i == 'Turn Down': self.player.move(0, 0, direction='Down') if i == 'Up': self.player.move(dy=-1, direction='Up') + #pg.time.delay(250) if i == 'Turn Up': self.player.move(0, 0, direction='Up') + diff --git a/sprites.py b/sprites.py index 9dfda29..0ab3e8b 100644 --- a/sprites.py +++ b/sprites.py @@ -155,6 +155,7 @@ class Player(pg.sprite.Sprite): def update(self): + #sleep(0.25) self.rect.x = self.x * TILESIZE self.rect.y = self.y * TILESIZE