forked from InfoProjekt/game
Compare commits
4 commits
01c3aeae4a
...
2a2d7b2765
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a2d7b2765 | |||
| 4a47efe94d | |||
|
|
4ccc2dde11 | ||
|
|
67a0937c4b |
1 changed files with 2 additions and 2 deletions
|
|
@ -75,13 +75,13 @@ class NPC(Objects):
|
|||
self.conversation.draw(screen)
|
||||
|
||||
def update(self, keys, objects):
|
||||
if self.lastUpdate + 200 < pg.time.get_ticks():
|
||||
if self.lastUpdate + 200 < pg.time.get_ticks():
|
||||
if self.talking:
|
||||
self.conversation.update(keys, objects)
|
||||
self.lastUpdate = pg.time.get_ticks()
|
||||
else:
|
||||
touches = pg.sprite.spritecollideany(self, objects[0])
|
||||
if touches is not None and keys[pg.K_SPACE] and isinstance(touches, MainCharacter):
|
||||
if touches is not None and keys[pg.K_f] and isinstance(touches, MainCharacter):
|
||||
self.talk(objects)
|
||||
self.lastUpdate = pg.time.get_ticks()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue