Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Corentin MIMEAU
PolyDefense
Commits
10298dae
Commit
10298dae
authored
Dec 01, 2015
by
Vincent BRULE
Browse files
up
parent
158b9107
Changes
1
Hide whitespace changes
Inline
Side-by-side
carte.py
View file @
10298dae
...
...
@@ -386,25 +386,23 @@ def ecran_principal(ecran, j1, j2, verif_tour, base_1, base_2):
if
(
u
,
v
)
==
(
18
,
3
):
if
verif_tour
==
1
:
if
Constante
.
position
in
carte
.
liste_herbe
:
if
verif_pose_tourelle
(
ecran
,
carte
,
Constante
.
position
)
==
True
:
couvrir_ecran_ennemie
(
ecran
,
verif_tour
)
if
base_1
.
depenser_argent
(
10
)
!=
"NON"
:
carte
.
liste_tourelle_1
.
append
(
Constante
.
position
)
carte
.
liste_herbe_obstacle
.
append
(
Constante
.
position
)
maj_affichage_tourelle
(
ecran
,
carte
.
liste_tourelle_1
,
tourelle_1_finale
,
verif_tour
)
maj_affichage_argent
(
ecran
,
base_1
,
j1
)
if
verif_pose_tourelle
(
ecran
,
carte
,
Constante
.
position
)
==
True
:
couvrir_ecran_ennemie
(
ecran
,
verif_tour
)
if
base_1
.
depenser_argent
(
10
)
!=
"NON"
:
carte
.
liste_tourelle_1
.
append
(
Constante
.
position
)
carte
.
liste_herbe_obstacle
.
append
(
Constante
.
position
)
maj_affichage_tourelle
(
ecran
,
carte
.
liste_tourelle_1
,
tourelle_1_finale
,
verif_tour
)
maj_affichage_argent
(
ecran
,
base_1
,
j1
)
elif
(
u
,
v
)
==
(
12
,
3
):
if
verif_tour
==
2
:
if
Constante
.
position
in
carte
.
liste_herbe
:
if
verif_pose_tourelle
(
ecran
,
carte
,
Constante
.
position
)
==
True
:
couvrir_ecran_ennemie
(
ecran
,
verif_tour
)
if
base_2
.
depenser_argent
(
10
)
!=
"NON"
:
carte
.
liste_tourelle_1
.
append
(
Constante
.
position
)
carte
.
liste_herbe_obstacle
.
append
(
Constante
.
position
)
maj_affichage_tourelle
(
ecran
,
carte
.
liste_tourelle_1
,
tourelle_1_finale
,
verif_tour
)
maj_affichage_argent
(
ecran
,
base_2
,
j2
)
if
verif_pose_tourelle
(
ecran
,
carte
,
Constante
.
position
)
==
True
:
couvrir_ecran_ennemie
(
ecran
,
verif_tour
)
if
base_2
.
depenser_argent
(
10
)
!=
"NON"
:
carte
.
liste_tourelle_1
.
append
(
Constante
.
position
)
carte
.
liste_herbe_obstacle
.
append
(
Constante
.
position
)
maj_affichage_tourelle
(
ecran
,
carte
.
liste_tourelle_1
,
tourelle_1_finale
,
verif_tour
)
maj_affichage_argent
(
ecran
,
base_2
,
j2
)
for
(
i
,
j
)
in
carte
.
liste_herbe
:
...
...
@@ -428,10 +426,4 @@ def ecran_principal(ecran, j1, j2, verif_tour, base_1, base_2):
display
.
flip
()
temps_passe
=
time
.
time
()
return
return
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment