Derp
This commit is contained in:
		
							parent
							
								
									344b4f8063
								
							
						
					
					
						commit
						c49028a04c
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -159,10 +159,9 @@ isGameOver g = blockStopped g && g ^. block ^. origin == startOrigin
 | 
			
		|||
 | 
			
		||||
timeStep :: Game -> IO Game
 | 
			
		||||
timeStep g = if (blockStopped g)
 | 
			
		||||
                then return . coreUpdater $ g
 | 
			
		||||
                else stopUpdater . coreUpdater $ g
 | 
			
		||||
                then stopUpdater g
 | 
			
		||||
                else return . gravitate $ g
 | 
			
		||||
  where
 | 
			
		||||
    coreUpdater = gravitate
 | 
			
		||||
    stopUpdater = nextBlock . updateScore . clearFullRows . freezeBlock
 | 
			
		||||
 | 
			
		||||
-- TODO check if mapKeysMonotonic works
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue