-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastronauta.kv
50 lines (42 loc) · 961 Bytes
/
astronauta.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
Gerenciador:
orientation: 'vertical'
Tela:
<Tela>:
orientation:'vertical'
canvas:
Color:
rgba:1,1,1,1
Rectangle:
id: tela
size:self.size
pos:self.pos
source:'fundo.jpg'
FloatLayout:
Label:
text:'Pontuação: 0'
font_size:'70sp'
bold:True
size_hint_y:None
height:self.font_size
y:root.height*0.95-self.height
Player:
id: player
size_hint:None,None
size:root.width/3, root.height/3
x:root.width/10
y:root.height/10
<Player>:
source:'player.png'
<Inimigo>:
source:'chicken.png'
size_hint:None,None
size:self.size
pos:self.pos
width:'100dp'
x: 0
y: 0
<GameOver>:
source:'fundo.jpg'
size_hint:None,None
size:self.size
pos:self.pos