Browse Source

Used a different glyph instead of the underline in the breakout game

pull/209/head
Eugenio Parodi 2 years ago
parent
commit
bd7193ae8b
  1. 2
      demo/games/breakout/main.py
  2. 2
      demo/games/breakoutrl/bolib/bodisplay.py
  3. 3
      demo/games/breakoutrl/main.py

2
demo/games/breakout/main.py

@ -145,7 +145,7 @@ class BreakOutDisplay(ttk.TTkWidget):
for bx in range(lineBlocks):
if self._blocks[by][bx]:
canvas.drawText(pos=(bx*8,by+blocksOffset),
text='_'*7,
text=''*7,
color=colors['lines'][by])
canvas.drawText(

2
demo/games/breakoutrl/bolib/bodisplay.py

@ -155,7 +155,7 @@ class BreakOutDisplay(ttk.TTkWidget):
for bx in range(wallCols):
if self._blocks[by][bx]:
canvas.drawText(pos=(bx*bricksize,by+blocksOffset),
text='_'*(bricksize-1),
text=''*(bricksize-1),
color=colors[by*numColors//wallRows])
canvas.drawText(

3
demo/games/breakoutrl/main.py

@ -119,6 +119,3 @@ ttk.TTkHelper.overlay(None, winParams, 2, 2, toolWindow=True)
winParams.resize(30,20)
root.mainloop()
winParams = WinParams(breakout, title="Params")
ttk.TTkHelper.overlay(None, winParams, 2, 2, toolWindow=True)
winParams.resize(30,20)
Loading…
Cancel
Save