Make visuals a tad clearer with a poor man's grid
This commit is contained in:
		
							parent
							
								
									f2327fc3c5
								
							
						
					
					
						commit
						dcacb9bf73
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -106,7 +106,7 @@ drawCell t = withAttr (tToAttr t) cw
 | 
				
			||||||
        tToAttr L = lAttr
 | 
					        tToAttr L = lAttr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cw :: Widget Name
 | 
					cw :: Widget Name
 | 
				
			||||||
cw = str "  "
 | 
					cw = str " ."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
drawScore :: Int -> Widget Name
 | 
					drawScore :: Int -> Widget Name
 | 
				
			||||||
drawScore n = vBox [ C.vCenter $ str "Score"
 | 
					drawScore n = vBox [ C.vCenter $ str "Score"
 | 
				
			||||||
| 
						 | 
					@ -125,13 +125,13 @@ drawNextShape t = padAll 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- TODO test on mac terminal defAttr vs (bg black)
 | 
					-- TODO test on mac terminal defAttr vs (bg black)
 | 
				
			||||||
theMap = attrMap V.defAttr
 | 
					theMap = attrMap V.defAttr
 | 
				
			||||||
  [ (iAttr, bg V.cyan)
 | 
					  [ (iAttr, on V.cyan V.cyan)
 | 
				
			||||||
  , (oAttr, bg V.yellow)
 | 
					  , (oAttr, on V.yellow V.yellow)
 | 
				
			||||||
  , (tAttr, bg V.magenta)
 | 
					  , (tAttr, on V.magenta V.magenta)
 | 
				
			||||||
  , (sAttr, bg V.green)
 | 
					  , (sAttr, on V.green V.green)
 | 
				
			||||||
  , (zAttr, bg V.red)
 | 
					  , (zAttr, on V.red V.red)
 | 
				
			||||||
  , (jAttr, bg V.blue)
 | 
					  , (jAttr, on V.blue V.blue)
 | 
				
			||||||
  , (lAttr, bg V.white) -- damn no orange in ANSI
 | 
					  , (lAttr, on V.white V.white) -- damn no orange in ANSI
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
iAttr, oAttr, tAttr, sAttr, zAttr, jAttr, lAttr :: AttrName
 | 
					iAttr, oAttr, tAttr, sAttr, zAttr, jAttr, lAttr :: AttrName
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue