This commit is contained in:
Mats Pape 2021-11-17 09:26:13 +01:00
commit a2aafe8b88
6 changed files with 6 additions and 5 deletions

1
Happy_Bird/.idea/.name generated Normal file
View File

@ -0,0 +1 @@
HappyBirdMain.java

View File

@ -3,11 +3,11 @@
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<VBox prefHeight="578.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.happy_bird.HappyBird">
<VBox prefHeight="800.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.happy_bird.HappyBird">
<ImageView>
<image>
<Image url="@screen.png" />
<Image url="@pics/Background.png" />
</image>
</ImageView>

View File

@ -20,7 +20,7 @@ public class HappyBirdMain extends Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("happyBird.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 578, 700);
Scene scene = new Scene(fxmlLoader.load(), 800, 700);
stage.setTitle("HappyBird");
stage.setScene(scene);
stage.show();

View File

@ -3,11 +3,11 @@
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<VBox prefHeight="578.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.happy_bird.HappyBird">
<VBox prefHeight="800.0" prefWidth="700.0" xmlns="http://javafx.com/javafx/11.0.2" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.happy_bird.HappyBird">
<ImageView>
<image>
<Image url="@screen.png" />
<Image url="@pics/Background.png" />
</image>
</ImageView>