misc changes

This commit is contained in:
eugenep 2021-04-10 23:26:13 +02:00
parent 4b6117779f
commit 8123f1726e
2 changed files with 6 additions and 0 deletions

View File

@ -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')

View File

@ -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