-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMy.kv
70 lines (67 loc) · 1.54 KB
/
My.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
<Invader>:
size: [100, 100]
canvas:
Rectangle:
pos: self.pos
size: self.size
source: self.src
<Planet>:
size: [100, 100]
canvas:
Rectangle:
pos: self.pos
size: self.size
source: self.src
<Bullet>:
canvas:
Rectangle:
pos: self.pos
size: self.size
source: self.src
<GameWidget>:
player: player_state
canvas.before:
Rectangle:
size: self.size
pos: self.pos
texture: self.bg_texture
canvas:
Rectangle:
size:10,self.height
Label:
font_size: 70
center_x: root.width / 2
top: root.top - (root.height / 2)
text: root.go_string
font_name: "Minecraft"
color: 1,1,1,1
Label:
font_size: 70
center_x: root.width / 2
top: root.top - 200
text: root.title_s
font_name: "Minecraft"
color: 1,1,1,1
Label:
font_size: 40
center_x: root.width / 2
top: root.top - (root.height - 200)
text: root.hint_text
font_name: "Minecraft"
color: 1,1,1,1
Label:
font_size: 30
pos: 150, root.top - 150
text: "ESC - Exit\n\nC - Change ship"
font_name: "Minecraft"
color: 1,1,1,1
Player:
id: player_state
<Player>:
id: player_state
size: [100, 100]
canvas:
Rectangle:
pos: self.pos
size: self.size
source: self.src