Made the fight gif runnable by everyone hopefully

This commit is contained in:
KahootChampion
2019-03-19 23:53:25 -06:00
parent 7b9796f92c
commit 55c603716c
2 changed files with 0 additions and 7 deletions

View File

@@ -345,10 +345,6 @@ public class ShipWarfareGUI extends Player{
title.setPadding(new Insets(6.0, 0.0, 0.0, 0.0)); title.setPadding(new Insets(6.0, 0.0, 0.0, 0.0));
//Creating an image
//Image image = new Image(new FileInputStream("/Users/harismuhammad/Desktop/ShipsAttacking.gif"));
System.out.println(System.getProperty("user.dir"));
Image image = new Image(new FileInputStream("src/ShipsAttacking.gif")); Image image = new Image(new FileInputStream("src/ShipsAttacking.gif"));
//Setting the image view //Setting the image view
@@ -360,9 +356,6 @@ public class ShipWarfareGUI extends Player{
shipsAttackingGif.setVisible(false); shipsAttackingGif.setVisible(false);
BorderPane.setAlignment(hBox, javafx.geometry.Pos.CENTER); BorderPane.setAlignment(hBox, javafx.geometry.Pos.CENTER);
hBox.setAlignment(javafx.geometry.Pos.CENTER); hBox.setAlignment(javafx.geometry.Pos.CENTER);
hBox.setPrefHeight(100.0); hBox.setPrefHeight(100.0);

BIN
src/ShipsAttacking.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 KiB