-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVenicePietro.kv
85 lines (72 loc) · 2.27 KB
/
VenicePietro.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
<MapLayer>:
size_hint: 1,1
x: 1920*2
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
pos: self.pos
size: self.size
source: root.source
<Map>:
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
pos: self.pos
size: self.size
source: "images/map/map_background.jpg"
<GameScreen>:
opacity: 1 if root.active is True else 0.3
<NextButton@Button>:
size_hint: .1, .3
text: "NEXT"
<Game>:
gamescreen1: gamescreen1
gamescreen2: gamescreen2
gamescreen3: gamescreen3
_map: _map
Map:
id: _map
map_layers: {"echoppe":"images/map/echoppe.jpg","formation":"images/map/formation.jpg","place":"images/map/place.jpg","eglise":"images/map/eglise.jpg","echoppe2":"images/map/echoppe2.jpg","formation2":"images/map/formation2.jpg","eglise2":"images/map/eglise2.jpg", "place2":"images/map/place2.jpg",}
size_hint: .5,.5
x: 1920*2
FloatLayout:
size_hint: None,1
width: 1920*2
GameScreen:
id: gamescreen1
name: "gamescreen1"
game: self
size_hint: .3, .3
source: "images/formation.jpg" if self.step2 is False else "images/formation2.jpg"
map_name: "echoppe"
focus_pos: .23,.5
focus_size_hint: .07,.04
GameScreen:
id: gamescreen2
name: "gamescreen2"
game: self
size_hint: .3, .3
pos_hint: {"x":.35}
source: "images/eglise.jpg" if self.step2 is False else "images/eglise2.jpg"
map_name: "eglise"
focus_pos: .15,.4
focus_size_hint: .35,.3
GameScreen:
id: gamescreen3
game: self
size_hint: .3, .3
pos_hint: {"x":.7, "y":0.}
source: "images/toile.jpg" if self.step2 is False else "images/toile2.jpg"
focus_pos: .1,.13
focus_size_hint: .05,.1
map_name: "place"
Button:
text: "RESTART"
pos_hint: {"top":1,"x":0}
size_hint: None,None
size: "80dp", "30dp"
color: [0,0,0,1]
on_press: root.restart()