This commit is contained in:
Lars Alteköster 2021-11-17 09:04:45 +01:00
parent 74d6b58f94
commit 4e7b664325
16 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
HappyBird.java
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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

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>