ajout d'une musique
This commit is contained in:
parent
628e14095e
commit
249c941962
@ -1,6 +1,5 @@
|
|||||||
package ihm;
|
package ihm;
|
||||||
|
|
||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
@ -8,15 +7,13 @@ import javafx.scene.layout.AnchorPane;
|
|||||||
import javafx.scene.layout.Pane;
|
import javafx.scene.layout.Pane;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
public class Main extends Application{
|
public class Main extends Application {
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws Exception{
|
public void start(Stage primaryStage) throws Exception {
|
||||||
System.out.println("Lancement de l'application");
|
System.out.println("Lancement de l'application");
|
||||||
<<<<<<< HEAD
|
|
||||||
Pane root = FXMLLoader.load(getClass().getResource("ressources/Menu.fxml")); // "ressources/Jouer_tour(1)lancer_des.fxml"
|
Pane root = FXMLLoader.load(getClass().getResource("ressources/Menu.fxml")); // "ressources/Jouer_tour(1)lancer_des.fxml"
|
||||||
=======
|
|
||||||
Pane root = FXMLLoader.load(getClass().getResource("ressources/Menu.fxml"));
|
|
||||||
>>>>>>> 962e4e4abd757404ab08839e67817494b857931a
|
|
||||||
primaryStage.setTitle("Shadow Hunters");
|
primaryStage.setTitle("Shadow Hunters");
|
||||||
primaryStage.setScene(new Scene(root));
|
primaryStage.setScene(new Scene(root));
|
||||||
primaryStage.centerOnScreen();
|
primaryStage.centerOnScreen();
|
||||||
@ -25,7 +22,8 @@ public class Main extends Application{
|
|||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
String filepath = "src//ihm//ressources//musique//The_Red_Fox_Tavern.wav"; //lien vers la musique : https://www.youtube.com/watch?v=LBpKUIyOHdo
|
String filepath = "src//ihm//ressources//musique//The_Red_Fox_Tavern.wav"; // lien vers la musique :
|
||||||
|
// https://www.youtube.com/watch?v=LBpKUIyOHdo
|
||||||
Musique musiqueObjet = new Musique();
|
Musique musiqueObjet = new Musique();
|
||||||
musiqueObjet.playMusique(filepath);
|
musiqueObjet.playMusique(filepath);
|
||||||
launch(args);
|
launch(args);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user