#11 Write report
This commit is contained in:
		
							parent
							
								
									c3f7e47703
								
							
						
					
					
						commit
						0a6e1d7ffb
					
				
					 27 changed files with 328 additions and 134 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,7 @@ import Data.Foldable (find)
 | 
			
		|||
handleInputActionSelection :: InputHandler Game
 | 
			
		||||
handleInputActionSelection = composeInputHandlers [
 | 
			
		||||
    handleKey (SpecialKey KeySpace) Down selectAction,
 | 
			
		||||
    handleKey (SpecialKey KeyEnter) Down selectAction,
 | 
			
		||||
 | 
			
		||||
    handleKey (SpecialKey KeyUp)    Down $ moveSelector North,
 | 
			
		||||
    handleKey (SpecialKey KeyDown)  Down $ moveSelector South
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,6 +36,7 @@ handleInputPlaying = composeInputHandlers [
 | 
			
		|||
 | 
			
		||||
    -- Interaction with entities and items
 | 
			
		||||
    handleKey (SpecialKey KeySpace) Down checkForInteraction,
 | 
			
		||||
    handleKey (SpecialKey KeyEnter) Down checkForInteraction,
 | 
			
		||||
    handleKey (Char 'f')            Down checkForInteraction,
 | 
			
		||||
 | 
			
		||||
    handleKey (Char 'i')            Down $ toggleInventoryShown True,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue