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
c6d51f8e
Commit
c6d51f8e
authored
Dec 13, 2015
by
Vincent BRULE
Browse files
etat partie
parent
157e5df2
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
c6d51f8e
...
...
@@ -21,10 +21,13 @@ Constante.ratio = float(Constante.largeur)/float(Constante.hauteur)
Constante
.
taille_rel
=
Constante
.
taille_tuile
*
Constante
.
largeur
/
Constante
.
largeur_ref
font
.
init
()
#Initialise la police
Constante
.
type_ecriture
=
font
.
SysFont
(
'Bauhaus 93'
,
50
*
Constante
.
largeur
/
Constante
.
largeur_ref
)
# Définition d'une police d'écriture
Constante
.
type_ecriture_titre
=
font
.
SysFont
(
'Bauhaus 93'
,
50
*
Constante
.
largeur
/
Constante
.
largeur_ref
,
False
,
True
)
Constante
.
type_ecriture_cout
=
font
.
SysFont
(
'Bauhaus 93'
,
20
*
Constante
.
largeur
/
Constante
.
largeur_ref
,
False
,
True
)
Constante
.
type_ecriture_chrono
=
font
.
SysFont
(
'OCR A Extended'
,
48
*
Constante
.
largeur
/
Constante
.
largeur_ref
,
False
,
True
)
Constante
.
type_ecriture_nombre_soldat
=
font
.
SysFont
(
'OCR A Extended'
,
40
*
Constante
.
largeur
/
Constante
.
largeur_ref
,
False
,
True
)
ecran
=
display
.
set_mode
((
Constante
.
largeur
,
Constante
.
hauteur
),
FULLSCREEN
)
...
...
@@ -41,8 +44,12 @@ nom_joueur(2, ecran, j_2)
ecran_accueil
(
ecran
)
ecran_principal
(
ecran
,
j_1
,
j_2
,
1
,
base_joueur_1
,
base_joueur_2
)
while
Constante
.
etat_partie
==
1
:
ecran_principal
(
ecran
,
j_1
,
j_2
,
1
,
base_joueur_1
,
base_joueur_2
)
ecran_principal
(
ecran
,
j_1
,
j_2
,
2
,
base_joueur_1
,
base_joueur_2
)
ecran_principal
(
ecran
,
j_1
,
j_2
,
3
,
base_joueur_1
,
base_joueur_2
)
\ No newline at end of file
ecran_principal
(
ecran
,
j_1
,
j_2
,
2
,
base_joueur_1
,
base_joueur_2
)
ecran_principal
(
ecran
,
j_1
,
j_2
,
3
,
base_joueur_1
,
base_joueur_2
)
ecran_fin
(
ecran
)
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