Mercurial > dw
changeset 21:0eb938bf70fe
The facing is not reset when stopping walking
| author | Radomir Dopieralski <moindev@sheep.art.pl> |
|---|---|
| date | Mon, 17 Dec 2007 17:28:17 +0100 |
| parents | 23362ba05813 |
| children | 7b79f91b6c40 |
| files | lib/game.py monster/player.py |
| diffstat | 2 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/game.py Mon Dec 17 13:55:54 2007 +0100 +++ b/lib/game.py Mon Dec 17 17:28:17 2007 +0100 @@ -11,7 +11,7 @@ def __init__(self): # Init pygame.init() - self.screen = pygame.display.set_mode((480, 480)) + self.screen = pygame.display.set_mode((480, 320)) self.clock = pygame.time.Clock() # Prapare the map @@ -36,16 +36,16 @@ while 1: # Update the screen if hscroll or vscroll: - if hscroll>4: - hs = 5 - elif hscroll<-4: - hs = -5 + if hscroll>2: + hs = 3 + elif hscroll<-2: + hs = -3 else: hs = 0 - if vscroll>2: - vs = 3 - elif vscroll<-2: - vs = -3 + if vscroll>1: + vs = 2 + elif vscroll<-1: + vs = -2 else: vs = 0 self.level.scroll(hs, vs)
