Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Corentin MIMEAU
PolyDefense
Commits
192ea65e
Commit
192ea65e
authored
Nov 25, 2015
by
Vincent BRULE
Browse files
up
parent
9009c157
Changes
1
Hide whitespace changes
Inline
Side-by-side
carte.py
View file @
192ea65e
...
@@ -173,7 +173,11 @@ def ecran_regle (ecran):
...
@@ -173,7 +173,11 @@ def ecran_regle (ecran):
return
return
def
maj_affichage_liste
(
ecran
,
liste
,
image
):
for
i
in
liste
:
ecran
.
blit
(
image
,
(
i
[
0
]
*
Constante
.
taille_rel
,
i
[
1
]
*
Constante
.
taille_rel
))
display
.
flip
()
def
ecran_principal
(
ecran
,
j1
,
j2
):
def
ecran_principal
(
ecran
,
j1
,
j2
):
son_fond
(
1
)
son_fond
(
1
)
...
@@ -231,10 +235,7 @@ def ecran_principal(ecran, j1, j2):
...
@@ -231,10 +235,7 @@ def ecran_principal(ecran, j1, j2):
for
i
in
carte
.
liste_sortie_ennemie
:
for
i
in
carte
.
liste_sortie_ennemie
:
ecran
.
blit
(
sortie_ennemie_finale
,
(
i
[
0
]
*
Constante
.
taille_rel
,
i
[
1
]
*
Constante
.
taille_rel
))
ecran
.
blit
(
sortie_ennemie_finale
,
(
i
[
0
]
*
Constante
.
taille_rel
,
i
[
1
]
*
Constante
.
taille_rel
))
def
maj_affichage_liste
(
ecran
,
liste
,
image
):
for
i
in
liste
:
ecran
.
blit
(
image
,
(
i
[
0
]
*
Constante
.
taille_rel
,
i
[
1
]
*
Constante
.
taille_rel
))
display
.
flip
()
texte_joueur
=
Constante
.
type_ecriture
.
render
(
j1
.
nom
,
True
,
Constante
.
ORANGE
,
(
255
,
255
,
255
))
texte_joueur
=
Constante
.
type_ecriture
.
render
(
j1
.
nom
,
True
,
Constante
.
ORANGE
,
(
255
,
255
,
255
))
texte_joueur2
=
Constante
.
type_ecriture
.
render
(
j2
.
nom
,
True
,
Constante
.
ORANGE
,
(
255
,
255
,
255
))
texte_joueur2
=
Constante
.
type_ecriture
.
render
(
j2
.
nom
,
True
,
Constante
.
ORANGE
,
(
255
,
255
,
255
))
...
...
Write
Preview
Markdown
is supported
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