-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.kv
48 lines (47 loc) · 1.22 KB
/
main.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
#:include pipe.kv
FloatLayout:
Background:
id: background
canvas.before:
Rectangle:
size: self.size
pos: self.pos
source: "sky.png"
Rectangle:
size: self.width, 138
pos: self.pos[0], self.pos[1] + self.height - 138
texture: self.cloud_texture
Rectangle:
size: self.width, 96
pos: self.pos[0], self.pos[1]
texture: self.floor_texture
Label:
id: score
size_hint_y: None
height: 96
text: "0"
font_size: 40
color: 1,0,1,1
Label:
id: highest
size_hint_y: None
size_hint_x: 0.25
height: 96
text: ""
font_size: 40
halign: 'left'
Button:
text: "Spustit hru"
background_normal: "transparent.png"
background_down: "transparent.png"
id: start_button
on_release:
self.disabled = True
self.opacity = 0
app.start_game()
Bird:
source: "bird1.png"
size_hint: None, None
size: 46, 34
pos: 20, (root.height - 96) / 2.0
id: bird