-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtetrivy.kv
74 lines (62 loc) · 1.47 KB
/
tetrivy.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#:kivy 1.9.1
<GameScreen>
board: board_id
sidebar: sidebar_id
orientation: 'horizontal'
padding: 10
spacing: 10
canvas.before:
Color:
rgba: 0.2, 0.2, 0.2, 1
Rectangle:
pos: self.pos
size: self.size
Board:
id: board_id
size_hint_x: 0.7
Sidebar:
id: sidebar_id
score: score_id
level: level_id
lines_cleared: lines_cleared_id
next_piece: next_piece_id
start_button: start_button_id
size_hint_x: 0.3
orientation: 'vertical'
Label:
bold: True
text: 'Score'
size_hint_y: 1
Label:
id: score_id
text: '0'
size_hint_y: 1
Label:
bold: True
text: 'Level'
size_hint_y: 1
Label:
id: level_id
text: '0'
size_hint_y: 1
Label:
bold: True
text: 'Lines Cleared'
size_hint_y: 1
Label:
id: lines_cleared_id
text: '0'
size_hint_y: 1
Label:
bold: True
text: 'Next'
size_hint_y: 1
Widget:
id: next_piece_id
size_hint_y: 3
Button:
id: start_button_id
background_color: (0, .5, 1.5, 1)
on_press: root.start_game()
text: 'Start'
size_hint_y: 2