misc changes
This commit is contained in:
parent
4b6117779f
commit
8123f1726e
5
main.py
5
main.py
@ -94,30 +94,35 @@ 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')
|
||||
|
||||
|
||||
|
||||
|
||||
def show_start_screen(self):
|
||||
pass
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user