Skip to content

Commit ca50f43

Browse files
tuned the game for the release on itch.io
1 parent 5ea977e commit ca50f43

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ __pycache__/
66
# other
77
tests/test.dummy.py
88
*.swp
9+
*.zip
10+
*.tgz
911
tmp
1012
profiler.*
1113
.vscode/*
@@ -16,6 +18,7 @@ experiments
1618
sandbox
1719
!tests/sandbox
1820
node_modules
21+
Varie
1922

2023
# VizTracker default file
2124
result.json

demo/games/breakout/main.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
class BreakOutParams():
3333
colors = {
3434
'lines': [
35-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#FF0000"),
36-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#FF0000"),
37-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#FF8800"),
38-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#FF8800"),
39-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#00FF00"),
40-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#00FF00"),
41-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#FFFF00"),
42-
ttk.TTkColor.fg("#000000")+ttk.TTkColor.bg("#FFFF00")],
35+
ttk.TTkColor.fg("#FF0000"),
36+
ttk.TTkColor.fg("#FF0000"),
37+
ttk.TTkColor.fg("#FF8800"),
38+
ttk.TTkColor.fg("#FF8800"),
39+
ttk.TTkColor.fg("#00FF00"),
40+
ttk.TTkColor.fg("#00FF00"),
41+
ttk.TTkColor.fg("#FFFF00"),
42+
ttk.TTkColor.fg("#FFFF00")],
4343
'bar' : ttk.TTkColor.fg("#0088FF"),
4444
}
4545
delay: float = 0.05
@@ -145,7 +145,7 @@ def paintEvent(self, canvas: ttk.TTkCanvas):
145145
for bx in range(lineBlocks):
146146
if self._blocks[by][bx]:
147147
canvas.drawText(pos=(bx*8,by+blocksOffset),
148-
text=''*7,
148+
text=''*7,
149149
color=colors['lines'][by])
150150

151151
canvas.drawText(

demo/games/breakoutrl/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def reParams(self):
114114
root.layout().addItem(ttk.TTkLayout(),0,2)
115115
root.layout().addItem(ttk.TTkLayout(),2,2)
116116

117-
winParams = WinParams(breakout, title="Params")
117+
winParams = WinParams(breakout,
118+
title="Params",
119+
flags = ttk.TTkK.WindowFlag.WindowReduceButtonHint | ttk.TTkK.WindowFlag.WindowMinMaxButtonsHint)
118120
ttk.TTkHelper.overlay(None, winParams, 2, 2, toolWindow=True)
119121
winParams.resize(30,20)
120122

tests/sandbox/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.tgz
22
bin
33
www
4+
game

0 commit comments

Comments
 (0)