-
Notifications
You must be signed in to change notification settings - Fork 36
/
twentyfourpoint.kv
55 lines (45 loc) · 1.02 KB
/
twentyfourpoint.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
#:kivy 1.0.9
<Game24Card>:
size: 50, 200
canvas:
Rectangle:
pos: self.pos
size: self.size
<Game24Button>:
size: 50, 50
canvas:
Ellipse:
pos:self.pos
size:self.size
<Game24>:
card1: Game24Card
card2: Game24Card
card3: Game24Card
card4: Game24Card
player1: player_left
player2: player_right
canvas:
Rectangle:
pos: self.center_x-5, 0
size: 10, self.height
Label:
font_size: 70
center_x: root.width / 4
top: root.top - 50
text: str(root.player1.score)
Label:
font_size: 70
center_x: root.width * 3 / 4
top: root.top - 50
text: str(root.player2.score)
Game24Card:
id: g24card1
center: self.parent.center
Game24Button:
id: player_left
x: root.x
center_y: root.center_y
Game24Button:
id: player_right
x: root.width-self.width
center_y: root.center_y