1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| public void drawLevel1(Graphics g)
{
Map mapDeparture = new Map(722, 307);
//Maison.
mapDeparture.drawMap(g, "parquet.png", 0, 0, 64, 62, 3, 3);
mapDeparture.drawMap(g, "poteau.png", 230, -3, 28, 64, 0, 3);
mapDeparture.drawMap(g, "poteau.png", 0, 125, 28, 64, 7, 1);
g.drawImage(new ImageIcon("lit.png").getImage(), 50, 10, 64, 64, null);
mapDeparture.delimitationMap();
Frame.labelNameKakoshi.setLocation((mapDeparture.kakoshiLocationX), (mapDeparture.kakoshiLocationY-7));
Frame.joueur.drawJoueur(g);
mapDeparture.drawSymboleOfVictory(g, "kakoshi.png", 38, 44);
mapDeparture.detectectVictory(g, 38, 44);
//Initialisation des monstres.
if (Frame.joueur.life <= 0)
{
//Si on ajoute des images dans les animations du personnage, il faudra modifier le système par failed!
Frame.failed = true;
mapDeparture.drawMapSpecial(g, "tiles_real.png", 20, 80, 20, 20, 16, 80, 49, 10);
g.drawImage(Map.deadHeck.getImage(), 270, 50, (Map.deadHeck.getIconWidth()/2), (Map.deadHeck.getIconHeight()/2), null);
Frame.labelQuest.setText("Vous avez perdu!");
}
} |
Partager