-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameplay.fxml
42 lines (40 loc) · 2.62 KB
/
gameplay.fxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.shape.Rectangle?>
<?import javafx.scene.text.Text?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.SceneController">
<children>
<ImageView fx:id="gameplay_bg" fitHeight="535.0" fitWidth="347.0" layoutX="-1.0" layoutY="-7.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@desktop-wallpaper-firewatch-green-forest-mountains-minimal-creative-graphics-for-iphone-android-mobile-and-thumbnail.jpg" />
</image>
</ImageView>
<Button layoutX="246.0" layoutY="1.0" mnemonicParsing="false" onAction="#switchTofirst_scrn" text="Home" />
<ImageView fx:id="plyr" fitHeight="88.0" fitWidth="183.0" layoutX="-60.0" layoutY="284.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@player3.png" />
</image>
</ImageView>
<Rectangle fx:id="platform1" arcHeight="5.0" arcWidth="5.0" height="152.0" layoutX="4.0" layoutY="350.0" stroke="BLACK" strokeType="INSIDE" width="49.0" />
<Rectangle fx:id="platform2" arcHeight="5.0" arcWidth="5.0" height="152.0" layoutX="91.0" layoutY="350.0" stroke="BLACK" strokeType="INSIDE" width="49.0" />
<Rectangle fx:id="platform3" arcHeight="5.0" arcWidth="5.0" height="152.0" layoutX="251.0" layoutY="350.0" stroke="BLACK" strokeType="INSIDE" width="49.0" />
<Rectangle fx:id="stick" arcHeight="5.0" arcWidth="5.0" fill="WHITE" height="175.0" layoutX="45.0" layoutY="173.0" stroke="WHITE" strokeType="INSIDE" width="5.0" />
<ImageView fx:id="cherry1" fitHeight="34.0" fitWidth="29.0" layoutX="231.0" layoutY="356.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@cherry.png" />
</image>
</ImageView>
<ImageView fx:id="cherrry_counter" fitHeight="34.0" fitWidth="29.0" layoutX="26.0" layoutY="34.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@cherry.png" />
</image>
</ImageView>
<Label fx:id="cherry_counter" layoutX="25.0" layoutY="34.0" text="4" />
<Label fx:id="score" layoutX="279.0" layoutY="33.0" text="13" />
<Text layoutX="244.0" layoutY="47.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Score:" />
</children>
</AnchorPane>