Skip to content
Snippets Groups Projects
Commit 804e74df authored by bruno's avatar bruno
Browse files

key2

parent 52a02f5a
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,8 @@ public class Painter implements GamePainter{
private void drawKey(Graphics2D crayon){
if(gameCharacter.key==0) {
crayon.fillRect(40,60,20,30);
for(int i = 1;i<=gameCharacter.key;i++) {
crayon.fillRect(40+30*i,60,20,30);
}
}
private void drawLifePoints(Graphics2D crayon){
......
package start;
import jeu.Painter;
import spotify.MP3;
//import spotify.MP3;
import engine.GameEngineGraphical;
import jeu.Controller;
......@@ -21,8 +21,8 @@ public class Main {
//pour la musique
MP3 mp3 = new MP3("cyberPacMusic1bon.wav");
mp3.displayMusic();
//MP3 mp3 = new MP3("cyberPacMusic1bon.wav");
//mp3.displayMusic();
// classe qui lance le moteur de jeu generique
GameEngineGraphical engine = new GameEngineGraphical(game, painter, controller);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment