misc changes
This commit is contained in:
parent
4b6117779f
commit
8123f1726e
5
main.py
5
main.py
@ -94,27 +94,32 @@ class Game:
|
|||||||
for i in self.player.moves:
|
for i in self.player.moves:
|
||||||
if i == 'Right':
|
if i == 'Right':
|
||||||
self.player.move(dx=1, direction='Right')
|
self.player.move(dx=1, direction='Right')
|
||||||
|
#pg.time.delay(250)
|
||||||
|
|
||||||
if i == 'Turn Right':
|
if i == 'Turn Right':
|
||||||
self.player.move(0, 0, direction='Right')
|
self.player.move(0, 0, direction='Right')
|
||||||
|
|
||||||
if i == 'Left':
|
if i == 'Left':
|
||||||
self.player.move(dx=-1, direction='Left')
|
self.player.move(dx=-1, direction='Left')
|
||||||
|
#pg.time.delay(250)
|
||||||
|
|
||||||
if i == 'Turn Left':
|
if i == 'Turn Left':
|
||||||
self.player.move(0, 0, direction='Left')
|
self.player.move(0, 0, direction='Left')
|
||||||
|
|
||||||
if i == 'Down':
|
if i == 'Down':
|
||||||
self.player.move(dy=1, direction='Down')
|
self.player.move(dy=1, direction='Down')
|
||||||
|
#pg.time.delay(250)
|
||||||
|
|
||||||
if i == 'Turn Down':
|
if i == 'Turn Down':
|
||||||
self.player.move(0, 0, direction='Down')
|
self.player.move(0, 0, direction='Down')
|
||||||
|
|
||||||
if i == 'Up':
|
if i == 'Up':
|
||||||
self.player.move(dy=-1, direction='Up')
|
self.player.move(dy=-1, direction='Up')
|
||||||
|
#pg.time.delay(250)
|
||||||
|
|
||||||
if i == 'Turn Up':
|
if i == 'Turn Up':
|
||||||
self.player.move(0, 0, direction='Up')
|
self.player.move(0, 0, direction='Up')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -155,6 +155,7 @@ class Player(pg.sprite.Sprite):
|
|||||||
|
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
|
#sleep(0.25)
|
||||||
self.rect.x = self.x * TILESIZE
|
self.rect.x = self.x * TILESIZE
|
||||||
self.rect.y = self.y * TILESIZE
|
self.rect.y = self.y * TILESIZE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user