Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
C
C2LART
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Wiki externe
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Quentin CECCONI
C2LART
Validations
80a6e31a
Valider
80a6e31a
rédigé
4 years ago
par
Quentin LECOMTE
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Replace boucle_de_jeu.pde
parent
211c361c
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
1
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
1 fichier modifié
build/boucle_de_jeu/boucle_de_jeu.pde
+17
-14
17 ajouts, 14 suppressions
build/boucle_de_jeu/boucle_de_jeu.pde
avec
17 ajouts
et
14 suppressions
build/boucle_de_jeu/boucle_de_jeu.pde
+
17
−
14
Voir le fichier @
80a6e31a
...
...
@@ -96,7 +96,7 @@ void setup() {
//sons
bgMusic
=
new
SoundFile
(
this
,
"bgmusic.wav"
);
battle
=
new
SoundFile
(
this
,
"battle.
mp3
"
);
battle
=
new
SoundFile
(
this
,
"battle.
wav
"
);
droite1
=
new
SoundFile
(
this
,
"droite1.wav"
);
droite2
=
new
SoundFile
(
this
,
"droite2.wav"
);
droite3
=
new
SoundFile
(
this
,
"droite3.wav"
);
...
...
@@ -109,15 +109,15 @@ void setup() {
epee1
=
new
SoundFile
(
this
,
"sching.wav"
);
epee2
=
new
SoundFile
(
this
,
"schyang.wav"
);
epee3
=
new
SoundFile
(
this
,
"sling.wav"
);
woosh
=
new
SoundFile
(
this
,
"woosh.
mp3
"
);
clang1
=
new
SoundFile
(
this
,
"bangbang.
mp3
"
);
clang2
=
new
SoundFile
(
this
,
"pafpaf.
mp3
"
);
clang3
=
new
SoundFile
(
this
,
"bonk.
mp3
"
);
woosh
=
new
SoundFile
(
this
,
"woosh.
wav
"
);
clang1
=
new
SoundFile
(
this
,
"bangbang.
wav
"
);
clang2
=
new
SoundFile
(
this
,
"pafpaf.
wav
"
);
clang3
=
new
SoundFile
(
this
,
"bonk.
wav
"
);
aie
=
new
SoundFile
(
this
,
"aie.wav"
);
mort
=
new
SoundFile
(
this
,
"mort.wav"
);
cri1
=
new
SoundFile
(
this
,
"cri.
mp3
"
);
cri1
=
new
SoundFile
(
this
,
"cri.
wav
"
);
cri2
=
new
SoundFile
(
this
,
"rale.wav"
);
gameover
=
new
SoundFile
(
this
,
"gameover.
mp3
"
);
gameover
=
new
SoundFile
(
this
,
"gameover.
wav
"
);
instructions
=
new
SoundFile
(
this
,
"instructions.wav"
);
textFont
(
createFont
(
"SansSerif"
,
30
*
displayDensity
));
...
...
@@ -150,7 +150,7 @@ void slash(float a,float b,float c,float d,color col,float offset,float lastcomp
}
void
fade
(
int
n
){
pg
=
createGraphics
(
displayWidth
,
displayHeight
);
pg
=
createGraphics
(
displayWidth
,
displayHeight
);
pg
.
beginDraw
();
pg
.
background
(
0
,
0
,
0
,
n
);
pg
.
endDraw
();
...
...
@@ -174,12 +174,15 @@ void draw() {
text
(
"Instructions"
,
startX
+
startSizeX
/
50
,
startY
+
startSizeY
/
3
,
startSizeX
,
startSizeY
);
break
;
case
1
:
//Correspond au jeu en lui-même
if
(
bgMusic
.
isPlaying
()){
bgMusic
.
stop
();
}
if
(
!
battle
.
isPlaying
()){
battle
.
play
();
}
if
(
bgMusic
.
isPlaying
()
||
instructions
.
isPlaying
()){
instructions
.
stop
();
bgMusic
.
stop
();
}
if
(
!
battle
.
isPlaying
()){
battle
.
play
();
}
if
(
vie
==
3
){
image
(
troiscoeur
,
0
,
0
,
displayWidth
,
troiscoeur
.
height
*
(
displayWidth
/
troiscoeur
.
width
));
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter