Gormlaks attack back
When gormlaks see the character, they step towards them and attack dealing 1 damage when adjacent. Characters have hitpoints now, displayed at the bottom of the game screen, and when the game is over they die.
This commit is contained in:
		
							parent
							
								
									ec39dc0a5b
								
							
						
					
					
						commit
						05da490185
					
				
					 11 changed files with 163 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -110,6 +110,9 @@ instance TraversableWithIndex EntityID EntityMap where
 | 
			
		|||
  itraversed = byID . itraversed . rmap sequenceA . distrib
 | 
			
		||||
  itraverse = itraverseOf itraversed
 | 
			
		||||
 | 
			
		||||
type instance Element (EntityMap a) = a
 | 
			
		||||
instance MonoFoldable (EntityMap a)
 | 
			
		||||
 | 
			
		||||
emptyEntityMap :: EntityMap a
 | 
			
		||||
emptyEntityMap = EntityMap mempty mempty 0
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue