java.lang.Object
com.example.project.services.GameMusicPlayer
plays a media player music track.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.scene.media.MediaPlayer
gets the singleton instance.
-
Constructor Details
-
GameMusicPlayer
public GameMusicPlayer()
-
-
Method Details
-
getInstance
public static javafx.scene.media.MediaPlayer getInstance()gets the singleton instance.- Returns:
- the game soundtrack player.
-