forked from InfoProjekt/game
		
	Development #7
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -33,7 +33,7 @@ fonts = { | ||||||
|     'spacy': 'nasalization-rg.otf', |     'spacy': 'nasalization-rg.otf', | ||||||
|     'sci-fi': 'neuropol.otf', |     'sci-fi': 'neuropol.otf', | ||||||
|     'hollow_big_edge': 'papercut.ttf', |     'hollow_big_edge': 'papercut.ttf', | ||||||
|     'f_shuttle': 'pdark.ttf', |     'space_shuttle': 'pdark.ttf', | ||||||
|     'thin': 'PixelFJVerdana12pt.ttf', |     'thin': 'PixelFJVerdana12pt.ttf', | ||||||
|     'random': 'Seattle Avenue.ttf', |     'random': 'Seattle Avenue.ttf', | ||||||
|     'pixel': 'yoster.ttf' |     'pixel': 'yoster.ttf' | ||||||
|  | @ -75,13 +75,13 @@ class NPC(Objects): | ||||||
|             self.conversation.draw(screen) |             self.conversation.draw(screen) | ||||||
|      |      | ||||||
|     def update(self, keys, objects):  |     def update(self, keys, objects):  | ||||||
|         if  self.lastUpdate + 150 < pg.time.get_ticks(): |         if self.lastUpdate + 200 < pg.time.get_ticks(): | ||||||
|             if self.talking: |             if self.talking: | ||||||
|                 self.conversation.update(keys, objects) |                 self.conversation.update(keys, objects) | ||||||
|                 self.lastUpdate = pg.time.get_ticks() |                 self.lastUpdate = pg.time.get_ticks() | ||||||
|             else: |             else: | ||||||
|                 touches = pg.sprite.spritecollideany(self, objects[0]) |                 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.talk(objects)  | ||||||
|                     self.lastUpdate = pg.time.get_ticks() |                     self.lastUpdate = pg.time.get_ticks() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue