Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
121 lines (104 sloc) 3.36 KB
#:kivy 1.0
<Controller>:
paint: _paint
controls: _controls
new_high_score: _new_high_score
start: _start
AnchorLayout:
anchor_x: 'left'
anchor_y: 'top'
Image:
id: _paint
source: root.current
size_hint: (0.9, 0.95)
on_touch_down: root.touch_down(*args)
AnchorLayout:
anchor_x: 'left'
anchor_y: 'top'
Label:
id: _new_high_score
text: 'New high score: ' + str(root.high_score)
color: [1,1,1,0]
font_size: 32
size_hint: (0.9, 0.95)
AnchorLayout:
anchor_x: 'left'
anchor_y: 'top'
Label:
id: _start
text: 'Start'
color: [1,1,1,0]
font_size: 32
size_hint: (0.9, 0.1)
AnchorLayout:
anchor_x: 'right'
anchor_y: 'top'
BoxLayout:
id: _controls
size_hint: (0.1, 0.95)
orientation: 'vertical'
AnchorLayout:
action: root.types.FACE
anchor_x: 'center'
anchor_y: 'center'
Image:
source: root.actions[root.types.FACE]
color: [1,1,1,1]
AnchorLayout:
action: root.types.NOSE
anchor_x: 'center'
anchor_y: 'center'
Image:
source: root.actions[root.types.NOSE]
color: [.5,.5,.5,.5]
AnchorLayout:
action: root.types.EYES
anchor_x: 'center'
anchor_y: 'center'
Image:
source: root.actions[root.types.EYES]
color: [.5,.5,.5,.5]
AnchorLayout:
action: root.types.MOUTH
anchor_x: 'center'
anchor_y: 'center'
Image:
source: root.actions[root.types.MOUTH]
color: [.5,.5,.5,.5]
AnchorLayout:
action: root.types.EARS
anchor_x: 'center'
anchor_y: 'center'
Image:
source: root.actions[root.types.EARS]
color: [.5,.5,.5,.5]
AnchorLayout:
action: root.types.THROAT
anchor_x: 'center'
anchor_y: 'center'
Image:
source: root.actions[root.types.THROAT]
color: [.5,.5,.5,.5]
AnchorLayout:
anchor_x: 'center'
anchor_y: 'bottom'
BoxLayout:
size_hint: (1, 0.05)
Button:
text: '<< Previous'
color: root.navcolor
size_hint: (0.5, 1)
on_press: root.previous()
background_color: [0,0,0,1]
Label:
color: [0.9,0.8,0.5,0.5]
text: 'High score: ' + str(root.high_score)
Label:
color: [0.3,0.9,0.8,0.9]
text: 'Your score: ' + str(root.score)
Button:
text: 'Next >>'
color: root.navcolor
size_hint: (0.5, 1)
on_press: root.next()
background_color: [0,0,0,1]