Place the chacracter in the level at startup time
Randomly select a position in the largest contiguous region of the generated level in which to place the character at startup time.
This commit is contained in:
		
							parent
							
								
									9ebdc6fbb4
								
							
						
					
					
						commit
						c06edf3cc6
					
				
					 9 changed files with 171 additions and 34 deletions
				
			
		|  | @ -101,7 +101,7 @@ _EntityMap = iso hither yon | |||
|     yon poses = alaf Endo foldMap (uncurry insertAt) poses emptyEntityMap | ||||
| 
 | ||||
| instance Semigroup (EntityMap a) where | ||||
|   em₁ <> em₂ = alaf Endo foldMap (uncurry insertAt) (em₁ ^. _EntityMap) em₂ | ||||
|   em₁ <> em₂ = alaf Endo foldMap (uncurry insertAt) (em₂ ^. _EntityMap) em₁ | ||||
| 
 | ||||
| instance Monoid (EntityMap a) where | ||||
|   mempty = emptyEntityMap | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue