-
Notifications
You must be signed in to change notification settings - Fork 0
/
space.kv
47 lines (42 loc) · 1.06 KB
/
space.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
#:import Window kivy.core.window.Window
<MainLayout>:
ActionBar:
width: root.width
height: 40
pos: 0, root.height - self.height
background_normal: ''
background_down: ''
background_color: (0.142, 0.142, 0.142, 1)
ActionView:
ActionPrevious:
app_icon: 'logo.png'
app_icon_height: 50
app_icon_width: 50
with_previous: False
ActionOverflow:
overflow_image: 'images/menu.png'
Label:
text: 'Space Blasters'
font_name: 'fonts/classic.ttf'
font_size: 20
pos: 100, Window.height - 70
color: 1, 0.73, 0, 1
<SpaceshipInit>:
health: self.health
score: self.score
highScore: self.highScore
Label:
text: str(root.health) + ' hp'
font_size: 20
font_name: 'fonts/classic.ttf'
color: 1, 0, 0, 1
pos: Window.width - 90, Window.height - 70
Label:
text: str(root.score) + ' p'
font_size: 20
font_name: 'fonts/classic.ttf'
color: 1, 0.73, 0, 1
pos: Window.width - 170, Window.height - 70
<EnemyInit>:
size_hint_x: 0.4
allow_stretch: True